summaryrefslogtreecommitdiffstats
path: root/progress.py
diff options
context:
space:
mode:
authorJason Chang <jasonnc@google.com>2023-05-23 13:06:55 -0700
committerJason Chang <jasonnc@google.com>2023-05-25 22:37:04 +0000
commit17833322d9e0c650310e55f806d5e3545c265c2a (patch)
tree67cd339bede0227bd43bd1e6fb9cc66fcb83d6b4 /progress.py
parent04cba4add52b11a27d09d73c2cbfebcd67a1f2cc (diff)
downloadgit-repo-17833322d9e0c650310e55f806d5e3545c265c2a.tar.gz
Add envar to replace shallow clones with partial
An investigation go/git-repo-shallow shows a number of problems when doing a shallow git fetch/clone. This change introduces an environment variable REPO_ALLOW_SHALLOW. When this environment variable is set to 1 during a repo init or repo sync all shallow git fetch commands are replaced with partial fetch commands. Any shallow repository needing update is unshallowed. This behavior continues until a subsequent repo sync command is run with REPO_ALLOW_SHALLOW set to 1. Bug: b/274340522 Change-Id: I1c3188270629359e52449788897d9d4988ebf280 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/374754 Reviewed-by: Josip Sokcevic <sokcevic@google.com> Tested-by: Jason Chang <jasonnc@google.com>
Diffstat (limited to 'progress.py')
0 files changed, 0 insertions, 0 deletions