aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/download_strategy.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index 1f77fa20c..9f9b2abab 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -832,7 +832,12 @@ class GitHubGitDownloadStrategy < GitDownloadStrategy
else
return true unless 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