GitDownloadStrategy: disable automatic tag following

This commit is contained in:
Chongyu Zhu 2018-12-12 19:42:12 +08:00
parent 9bb218f16c
commit 6f8d81e780
No known key found for this signature in database
GPG Key ID: 1A43E3C9100B38F5

View File

@ -683,6 +683,9 @@ class GitDownloadStrategy < VCSDownloadStrategy
system_command! "git", system_command! "git",
args: ["config", "remote.origin.fetch", refspec], args: ["config", "remote.origin.fetch", refspec],
chdir: cached_location chdir: cached_location
system_command! "git",
args: ["config", "remote.origin.tagOpt", "--no-tags"],
chdir: cached_location
end end
def update_repo def update_repo