Skip to content

Commit

Permalink
GitDownloadStrategy: don't pass --depth to fetch
Browse files Browse the repository at this point in the history
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 7718c93.

Fixes Homebrew#12024.

Signed-off-by: Jack Nagel <[email protected]>
  • Loading branch information
jacknagel committed May 4, 2012
1 parent d491417 commit ce6e33f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Library/Homebrew/download_strategy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ce6e33f

Please sign in to comment.