diff options
author | Robert Speicher <robert@gitlab.com> | 2016-02-09 18:14:50 +0000 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2016-02-09 18:14:50 +0000 |
commit | 069937d2c7645f5000b877f869e3b0590f717bb2 (patch) | |
tree | 87c862421258bf4061c7c107b0cb72250f85c709 /lib | |
parent | 883bbd61ca6f465a8fa15583bcefcafd83e40b02 (diff) | |
parent | 5ffec2c953478fbad35d7e7f4fc4b6eb119d7918 (diff) | |
download | gitlab-ce-069937d2c7645f5000b877f869e3b0590f717bb2.tar.gz |
Merge branch 'freeze-constants-lib-gitlab-git' into 'master'
Freeze constants in Gitlab::Git
See merge request !1730
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/git.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/git.rb b/lib/gitlab/git.rb index f065cc5e9e9..191bea86ac3 100644 --- a/lib/gitlab/git.rb +++ b/lib/gitlab/git.rb @@ -1,8 +1,8 @@ module Gitlab module Git - BLANK_SHA = '0' * 40 - TAG_REF_PREFIX = "refs/tags/" - BRANCH_REF_PREFIX = "refs/heads/" + BLANK_SHA = ('0' * 40).freeze + TAG_REF_PREFIX = "refs/tags/".freeze + BRANCH_REF_PREFIX = "refs/heads/".freeze class << self def ref_name(ref) |