Commit 9a94a95e authored by Gavin Mak's avatar Gavin Mak Committed by LUCI CQ

Remove TAGS_REFSPEC if no_fetch_tags is true

Bug: 1188627
Change-Id: I6ee14ee9976b9aab60ce409ddd17f018ad966055
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2797933Reviewed-by: 's avatarJosip Sokcevic <sokcevic@google.com>
Commit-Queue: Gavin Mak <gavinmak@google.com>
parent b1c08f6c
......@@ -711,6 +711,8 @@ def _git_checkout(sln, sln_dir, revisions, refs, no_fetch_tags, git_cache_dir,
'--cache-dir', git_cache_dir, url, '--reset-fetch-config'])
if no_fetch_tags:
populate_cmd.extend(['--no-fetch-tags'])
if TAGS_REFSPEC in refs:
refs.remove(TAGS_REFSPEC)
for ref in refs:
populate_cmd.extend(['--ref', ref])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment