mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
Return full HEAD when unshortened
This commit is contained in:
committed by
Corey Johnson
parent
d66315dd21
commit
88cdff9d26
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user