aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2012-05-03 19:33:30 -0500
committerJack Nagel2012-05-03 19:33:30 -0500
commitdf2803ece5919a9a72e11e656931d62a79e0080e (patch)
tree3cb44ffd35318361d354998626e72addd6646176 /Library
parentc9652760ed07784b1aa42692c71e3ba6830e9e89 (diff)
downloadbrew-df2803ece5919a9a72e11e656931d62a79e0080e.tar.bz2
GitDownloadStrategy: don't pass --depth to fetch
The --depth option is apparently more nuanced that I had originally thought, and while it does not actually break repositories, repeatedly using "--depth 1" can cause problems depending on the structure of the history. Luckily, we don't actually need it to prevent the entire repository from being fetched as long as the fetch respec is set correctly, which we do since 7718c939b06987ff8f1ecd599c8ace6f998ce180. Fixes Homebrew/homebrew#12024. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/download_strategy.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index 718643bf9..30e9b0043 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -360,7 +360,6 @@ class GitDownloadStrategy < AbstractDownloadStrategy
end
git_args = %w[git fetch origin]
- git_args << '--depth' << '1' if support_depth?
quiet_safe_system(*git_args)
end
end