Merge branch 'freeze-constants-lib-gitlab-git' into 'master'
Freeze constants in Gitlab::Git See merge request !1730
This commit is contained in:
commit
069937d2c7
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue