diff options
| author | Vlad Shablinsky | 2016-05-25 20:17:30 +0300 |
|---|---|---|
| committer | Xu Cheng | 2016-07-06 16:19:49 +0800 |
| commit | 45b3bfd11ac1d9d12d0e885576702eab2acc60cb (patch) | |
| tree | 227763a6a86eeed60e6ababc07608efdb0484d47 /Library | |
| parent | 0b2cc5c20db30f5d0046091f8c2318752f7b0659 (diff) | |
| download | brew-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.rb | 2 |
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 |
