Return full HEAD when unshortened

This commit is contained in:
Kevin Sawicki
2012-10-25 11:15:42 -07:00
committed by Corey Johnson
parent d66315dd21
commit 88cdff9d26

View File

@@ -17,3 +17,4 @@ class Git
return head.substring(10) if head.indexOf('refs/tags/') is 0
return head.substring(13) if head.indexOf('refs/remotes/') is 0
return head.substring(0, 7) if head.match(/[a-fA-F0-9]{40}/)
return head