Commit be339986 authored by Zeger-Jan van de Weg's avatar Zeger-Jan van de Weg

Minor refactoring on Gitlab::Git

parent 42e0e357
module Gitlab module Gitlab
module Git module Git
BLANK_SHA = '0' * 40 # '0' * 40 -- this was easyer to freeze
TAG_REF_PREFIX = "refs/tags/" BLANK_SHA = "0000000000000000000000000000000000000000".freeze
BRANCH_REF_PREFIX = "refs/heads/" TAG_REF_PREFIX = "refs/tags/".freeze
BRANCH_REF_PREFIX = "refs/heads/".freeze
class << self class << self
def ref_name(ref) def ref_name(ref)
......
require 'spec_helper'
describe Gitlab::Git do
describe "BLANK_SHA" do
it "is a string of 40 zero's" do
expect(Gitlab::Git::BLANK_SHA).to eq('0' * 40)
end
end
end
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