From 88cdff9d263706496ece652dcdd2105d362f777e Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 25 Oct 2012 11:15:42 -0700 Subject: [PATCH] Return full HEAD when unshortened --- src/app/git.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/git.coffee b/src/app/git.coffee index 7ba87eb94..38d425288 100644 --- a/src/app/git.coffee +++ b/src/app/git.coffee @@ -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