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/+/2797933
Reviewed-by: Josip Sokcevic <sokcevic@google.com>
Commit-Queue: Gavin Mak <gavinmak@google.com>
changes/33/2797933/2
Gavin Mak 5 years ago committed by LUCI CQ
parent b1c08f6c61
commit 9a94a95e65

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

Loading…
Cancel
Save