update-test: Use git fetch --tags --depth=1

Use git fetch --tags --depth=1 to fetch fewer commits.
This commit is contained in:
Shaun Jackman 2017-03-28 09:36:50 -07:00
parent daa88ee653
commit 89f3b6d6a6

View File

@ -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