mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
download_strategy: keep commit short if possible
This commit is contained in:
parent
5bbd64141e
commit
7b24d1d2d1
@ -832,7 +832,12 @@ class GitHubGitDownloadStrategy < GitDownloadStrategy
|
|||||||
else
|
else
|
||||||
return true unless commit
|
return true unless commit
|
||||||
return true unless @last_commit.start_with?(commit)
|
return true unless @last_commit.start_with?(commit)
|
||||||
multiple_short_commits_exist?(commit)
|
if multiple_short_commits_exist?(commit)
|
||||||
|
true
|
||||||
|
else
|
||||||
|
version.update_commit(commit)
|
||||||
|
false
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user