From 865d702f7ac501a7e5c89e61ede4a020f86686ed Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 3 May 2012 19:33:30 -0500 Subject: [PATCH] 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 --- Library/Homebrew/download_strategy.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 718643bf97ed..30e9b0043f87 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -360,7 +360,6 @@ def fetch end git_args = %w[git fetch origin] - git_args << '--depth' << '1' if support_depth? quiet_safe_system(*git_args) end end