mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
project: Include tags option during fetch retry
If the original fetch attempt did not want tags, we should continue to honor that when doing a retry fetch with depth set to None. This seems to match the intent of the retry based on the inline comment and results in a significant performance improvement when the original fetch-by-sha1 fails due to the server not allowing requests for unadvertised objects. Change-Id: Ia26bb31ea9aecc4ba2d3e87fc0c5412472cd98c4 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/374918 Reviewed-by: Mike Frysinger <vapier@google.com> Reviewed-by: Kaushik Lingarkar <kaushik.lingarkar@linaro.org> Tested-by: Kaushik Lingarkar <kaushik.lingarkar@linaro.org>
This commit is contained in:
parent
90f574f02e
commit
aafed29d34
@ -2573,6 +2573,7 @@ class Project(object):
|
||||
current_branch_only=current_branch_only and depth,
|
||||
initial=False,
|
||||
alt_dir=alt_dir,
|
||||
tags=tags,
|
||||
depth=None,
|
||||
ssh_proxy=ssh_proxy,
|
||||
clone_filter=clone_filter,
|
||||
|
Loading…
Reference in New Issue
Block a user