Skip to content
Snippets Groups Projects
Commit be339986 authored by Zeger-Jan van de Weg's avatar Zeger-Jan van de Weg
Browse files

Minor refactoring on Gitlab::Git

parent 42e0e357
No related branches found
No related tags found
No related merge requests found
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)
Loading
Loading
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment