restore ref_map and tree_map tests

This commit is contained in:
rick
2010-10-11 13:32:14 -07:00
parent ebf7855c09
commit a92a882021
3 changed files with 37 additions and 27 deletions
+5 -1
View File
@@ -39,7 +39,11 @@ module Gollum
end
def ref_to_sha(ref)
@ref_map[ref] ||= ref_to_sha!(ref)
if ref =~ /^[0-9a-f]{40}$/
ref
else
@ref_map[ref] ||= ref_to_sha!(ref)
end
end
def tree(ref)