Merge pull request #5396 from lembacon/git-download-strategy-tag-opt

GitDownloadStrategy: disable automatic tag following
This commit is contained in:
Chongyu Zhu 2018-12-12 23:38:44 +08:00 committed by GitHub
commit 0739202ea3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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