aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorVlad Shablinsky2016-05-25 20:17:30 +0300
committerXu Cheng2016-07-06 16:19:49 +0800
commit45b3bfd11ac1d9d12d0e885576702eab2acc60cb (patch)
tree227763a6a86eeed60e6ababc07608efdb0484d47 /Library
parent0b2cc5c20db30f5d0046091f8c2318752f7b0659 (diff)
downloadbrew-45b3bfd11ac1d9d12d0e885576702eab2acc60cb.tar.bz2
download_strategy: use short hash for git last_commit
Closes #460. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/download_strategy.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index f690155f2..cb94fa38a 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