From 45b3bfd11ac1d9d12d0e885576702eab2acc60cb Mon Sep 17 00:00:00 2001
From: Vlad Shablinsky <vladshablinsky@gmail.com>
Date: Wed, 25 May 2016 20:17:30 +0300
Subject: [PATCH] download_strategy: use short hash for git last_commit

Closes #460.

Signed-off-by: Xu Cheng <xucheng@me.com>
---
 Library/Homebrew/download_strategy.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index f690155f2e..cb94fa38a5 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -592,7 +592,7 @@ class GitDownloadStrategy < VCSDownloadStrategy
   end
 
   def last_commit
-    Utils.popen_read("git", "--git-dir", git_dir ,"rev-parse", "HEAD").chomp
+    Utils.popen_read("git", "--git-dir", git_dir ,"rev-parse", "--short", "HEAD").chomp
   end
 
   private
-- 
GitLab