summaryrefslogtreecommitdiffstats
path: root/project.py
diff options
context:
space:
mode:
authorNasser Grainawi <nasser.grainawi@linaro.org>2023-05-24 12:51:03 -0600
committerMike Frysinger <vapier@google.com>2023-05-25 12:16:06 +0000
commitaafed29d34e67619b0df5b4a062b914eb7584ea5 (patch)
treeb28ced448ae4f5aa4d741465a97e4772f7593540 /project.py
parent90f574f02e0b8432de2ad03951ea74df3464dc38 (diff)
downloadgit-repo-aafed29d34e67619b0df5b4a062b914eb7584ea5.tar.gz
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>
Diffstat (limited to 'project.py')
-rw-r--r--project.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/project.py b/project.py
index 07ac0925..ff018393 100644
--- a/project.py
+++ b/project.py
@@ -2573,6 +2573,7 @@ class Project(object):
2573 current_branch_only=current_branch_only and depth, 2573 current_branch_only=current_branch_only and depth,
2574 initial=False, 2574 initial=False,
2575 alt_dir=alt_dir, 2575 alt_dir=alt_dir,
2576 tags=tags,
2576 depth=None, 2577 depth=None,
2577 ssh_proxy=ssh_proxy, 2578 ssh_proxy=ssh_proxy,
2578 clone_filter=clone_filter, 2579 clone_filter=clone_filter,