git-repo/subcmds
Fredrik de Groot ebdf0409d2 Add REPO_SKIP_SELF_UPDATE check in sync
The command _PostRepoFetch will try to self update
during repo sync. That is beneficial but adds
version uncertainty, fail potential and slow downs
in non-interactive scenarios.

Conditionally skip the update if env variable
REPO_SKIP_SELF_UPDATE is defined.

A call to selfupdate works as before, meaning even
with the variable set, it will run the update.

Change-Id: Iab0ef55dc3d3db3cbf1ba1f506c57fbb58a504c3
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/439967
Tested-by: Fredrik de Groot <fredrik.de.groot@haleytek.com>
Commit-Queue: Josip Sokcevic <sokcevic@google.com>
Reviewed-by: Josip Sokcevic <sokcevic@google.com>
2024-10-28 17:46:25 +00:00
..
__init__.py cleanup: Update codebase to expect Python 3.6 2023-10-31 16:03:54 +00:00
abandon.py subcmds: reduce multiprocessing serialization overhead 2024-10-23 23:34:34 +00:00
branches.py subcmds: reduce multiprocessing serialization overhead 2024-10-23 23:34:34 +00:00
checkout.py subcmds: reduce multiprocessing serialization overhead 2024-10-23 23:34:34 +00:00
cherry_pick.py Update logger.warn to logger.warning 2023-10-13 19:34:26 +00:00
diff.py subcmds: reduce multiprocessing serialization overhead 2024-10-23 23:34:34 +00:00
diffmanifests.py cleanup: Update codebase to expect Python 3.6 2023-10-31 16:03:54 +00:00
download.py subcmds: Use repo logger 2023-09-14 17:13:37 +00:00
forall.py subcmds: reduce multiprocessing serialization overhead 2024-10-23 23:34:34 +00:00
grep.py subcmds: reduce multiprocessing serialization overhead 2024-10-23 23:34:34 +00:00
help.py cleanup: Update codebase to expect Python 3.6 2023-10-31 16:03:54 +00:00
info.py info: Handle undefined mergeBranch 2023-11-20 19:22:53 +00:00
init.py init: add --manifest-upstream-branch 2024-09-26 00:52:28 +00:00
list.py cleanup: Update codebase to expect Python 3.6 2023-10-31 16:03:54 +00:00
manifest.py Update logger.warn to logger.warning 2023-10-13 19:34:26 +00:00
overview.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
prune.py subcmds: reduce multiprocessing serialization overhead 2024-10-23 23:34:34 +00:00
rebase.py Update logger.warn to logger.warning 2023-10-13 19:34:26 +00:00
selfupdate.py subcmds: Use repo logger 2023-09-14 17:13:37 +00:00
smartsync.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
stage.py subcmds: Use repo logger 2023-09-14 17:13:37 +00:00
start.py subcmds: reduce multiprocessing serialization overhead 2024-10-23 23:34:34 +00:00
status.py subcmds: reduce multiprocessing serialization overhead 2024-10-23 23:34:34 +00:00
sync.py Add REPO_SKIP_SELF_UPDATE check in sync 2024-10-28 17:46:25 +00:00
upload.py subcmds: reduce multiprocessing serialization overhead 2024-10-23 23:34:34 +00:00
version.py cleanup: Update codebase to expect Python 3.6 2023-10-31 16:03:54 +00:00