diff options
-rw-r--r-- | docs/release-process.md | 3 | ||||
-rw-r--r-- | subcmds/sync.py | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/docs/release-process.md b/docs/release-process.md index 8cec2b47..a8c41c52 100644 --- a/docs/release-process.md +++ b/docs/release-process.md | |||
@@ -96,6 +96,9 @@ If that tag is valid, then repo will warn and use that commit instead. | |||
96 | 96 | ||
97 | If that tag cannot be verified, it gives up and forces the user to resolve. | 97 | If that tag cannot be verified, it gives up and forces the user to resolve. |
98 | 98 | ||
99 | If env variable `REPO_SKIP_SELF_UPDATE` is defined, this will | ||
100 | bypass the self update algorithm. | ||
101 | |||
99 | ### Force an update | 102 | ### Force an update |
100 | 103 | ||
101 | The `repo selfupdate` command can be used to force an immediate update. | 104 | The `repo selfupdate` command can be used to force an immediate update. |
diff --git a/subcmds/sync.py b/subcmds/sync.py index 00fee776..decf559b 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py | |||
@@ -958,7 +958,9 @@ later is required to fix a server side protocol bug. | |||
958 | if not success: | 958 | if not success: |
959 | err_event.set() | 959 | err_event.set() |
960 | 960 | ||
961 | _PostRepoFetch(rp, opt.repo_verify) | 961 | # Call self update, unless requested not to |
962 | if os.environ.get("REPO_SKIP_SELF_UPDATE", "0") == "0": | ||
963 | _PostRepoFetch(rp, opt.repo_verify) | ||
962 | if opt.network_only: | 964 | if opt.network_only: |
963 | # Bail out now; the rest touches the working tree. | 965 | # Bail out now; the rest touches the working tree. |
964 | if err_event.is_set(): | 966 | if err_event.is_set(): |