diff options
author | Fredrik de Groot <fredrik.de.groot@haleytek.com> | 2024-10-22 14:14:59 +0200 |
---|---|---|
committer | LUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2024-10-28 17:46:25 +0000 |
commit | ebdf0409d289b1133d5d95c8e06c30709902f1f0 (patch) | |
tree | 90be09c5aeeefb78f377bc864ff0b88e90752bc5 /docs/release-process.md | |
parent | 303bd963d57936873f62c7b61a885911afc46788 (diff) | |
download | git-repo-ebdf0409d289b1133d5d95c8e06c30709902f1f0.tar.gz |
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>
Diffstat (limited to 'docs/release-process.md')
-rw-r--r-- | docs/release-process.md | 3 |
1 files changed, 3 insertions, 0 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. |