diff options
author | Zeger-Jan van de Weg <mail@zjvandeweg.nl> | 2015-11-02 21:02:08 +0300 |
---|---|---|
committer | Zeger-Jan van de Weg <mail@zjvandeweg.nl> | 2016-02-05 10:39:44 +0300 |
commit | be3399868cbcfdce85daa6fdf53a079bc163056a (patch) | |
tree | e3ba77b1664ce5b59f82239010c30cfcd4be8d9d /lib/gitlab/git.rb | |
parent | 42e0e35784de81d2a0f7bff05870ddc5c531d0bb (diff) |
Minor refactoring on Gitlab::Git
Diffstat (limited to 'lib/gitlab/git.rb')
-rw-r--r-- | lib/gitlab/git.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/gitlab/git.rb b/lib/gitlab/git.rb index f065cc5e9e9..a33daeb119f 100644 --- a/lib/gitlab/git.rb +++ b/lib/gitlab/git.rb @@ -1,8 +1,9 @@ module Gitlab module Git - BLANK_SHA = '0' * 40 - TAG_REF_PREFIX = "refs/tags/" - BRANCH_REF_PREFIX = "refs/heads/" + # '0' * 40 -- this was easyer to freeze + BLANK_SHA = "0000000000000000000000000000000000000000".freeze + TAG_REF_PREFIX = "refs/tags/".freeze + BRANCH_REF_PREFIX = "refs/heads/".freeze class << self def ref_name(ref) |