mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Merge pull request #2414 from sjackman/update-test-fetch-shallow
update-test: Use git fetch --tags --depth=1
This commit is contained in:
commit
3805850eb3
@ -36,7 +36,7 @@ module Homebrew
|
||||
previous_tag =
|
||||
Utils.popen_read("git", "tag", "--list", "--sort=-version:refname").lines[1]
|
||||
unless previous_tag
|
||||
safe_system "git", "fetch", "--tags"
|
||||
safe_system "git", "fetch", "--tags", "--depth=1"
|
||||
previous_tag =
|
||||
Utils.popen_read("git", "tag", "--list", "--sort=-version:refname").lines[1]
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user