download_strategy: use short hash for git last_commit

Closes #460.

Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
Vlad Shablinsky 2016-05-25 20:17:30 +03:00 committed by Xu Cheng
parent 0b2cc5c20d
commit 45b3bfd11a
No known key found for this signature in database
GPG Key ID: C2A3860FA0B459CE

View File

@ -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