Merge branch 'freeze-constants-lib-gitlab-git' into 'master'

Freeze constants in Gitlab::Git

See merge request !1730
This commit is contained in:
Robert Speicher 2016-02-09 18:14:50 +00:00
commit 069937d2c7
1 changed files with 3 additions and 3 deletions

View File

@ -1,8 +1,8 @@
module Gitlab module Gitlab
module Git module Git
BLANK_SHA = '0' * 40 BLANK_SHA = ('0' * 40).freeze
TAG_REF_PREFIX = "refs/tags/" TAG_REF_PREFIX = "refs/tags/".freeze
BRANCH_REF_PREFIX = "refs/heads/" BRANCH_REF_PREFIX = "refs/heads/".freeze
class << self class << self
def ref_name(ref) def ref_name(ref)