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
commit8a1c2eccb693d43a8a24d9eb373e4a24aa5b96b5 (patch)
treee57443fcc05080efb133ebce8cd4b3b34dc9ed2d /Library
parent8a05d2c64297e6b053cb540376d6efdc5cc7b68e (diff)
downloadhomebrew-8a1c2eccb693d43a8a24d9eb373e4a24aa5b96b5.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 #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