Commit 069937d2 authored by Robert Speicher's avatar Robert Speicher

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

Freeze constants in Gitlab::Git

See merge request !1730
parents 883bbd61 5ffec2c9
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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment