download_strategy: use short hash for git last_commit
Closes #460. Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
parent
0b2cc5c20d
commit
45b3bfd11a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user