update-test: Use git fetch --tags --depth=1
Use git fetch --tags --depth=1 to fetch fewer commits.
This commit is contained in:
parent
daa88ee653
commit
89f3b6d6a6
@ -36,7 +36,7 @@ module Homebrew
|
|||||||
previous_tag =
|
previous_tag =
|
||||||
Utils.popen_read("git", "tag", "--list", "--sort=-version:refname").lines[1]
|
Utils.popen_read("git", "tag", "--list", "--sort=-version:refname").lines[1]
|
||||||
unless previous_tag
|
unless previous_tag
|
||||||
safe_system "git", "fetch", "--tags"
|
safe_system "git", "fetch", "--tags", "--depth=1"
|
||||||
previous_tag =
|
previous_tag =
|
||||||
Utils.popen_read("git", "tag", "--list", "--sort=-version:refname").lines[1]
|
Utils.popen_read("git", "tag", "--list", "--sort=-version:refname").lines[1]
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user