summaryrefslogtreecommitdiffstats
path: root/subcmds
diff options
context:
space:
mode:
authorGavin Mak <gavinmak@google.com>2026-06-15 23:22:53 +0000
committergerrit-scoped@luci-project-accounts.iam.gserviceaccount.com <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com>2026-06-16 10:30:47 -0700
commitcd307a6089f136e8f4f0fe85ce0393782cf99af1 (patch)
tree1d81589db855c92f7771a9ed1fc38ac0c1d09d82 /subcmds
parent4b462634e0841f47a035167cf7c08ac21abf53a2 (diff)
downloadgit-repo-cd307a6089f136e8f4f0fe85ce0393782cf99af1.tar.gz
project: Add REPO_PROJECT_FETCH_URL environment variable
Add REPO_PROJECT_FETCH_URL to Project.GetEnvVars(), which resolves to the remote fetch URL of the project. This is useful for exposing the URL to custom fetch commands or other external scripts. Bug: 513329573 Change-Id: Ic2b0a83493934d16bb1152366ee4e1a2c35ea2dc Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/596121 Tested-by: Gavin Mak <gavinmak@google.com> Reviewed-by: Mike Frysinger <vapier@google.com> Commit-Queue: Gavin Mak <gavinmak@google.com>
Diffstat (limited to 'subcmds')
-rw-r--r--subcmds/forall.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/subcmds/forall.py b/subcmds/forall.py
index 4560f0d27..03d12708d 100644
--- a/subcmds/forall.py
+++ b/subcmds/forall.py
@@ -107,6 +107,8 @@ manifest.
107REPO_DEST_BRANCH is the name of the destination branch for code review, 107REPO_DEST_BRANCH is the name of the destination branch for code review,
108as specified in the manifest. 108as specified in the manifest.
109 109
110REPO_PROJECT_FETCH_URL is the full resolved fetch URL for the project.
111
110REPO_COUNT is the total number of projects being iterated. 112REPO_COUNT is the total number of projects being iterated.
111 113
112REPO_I is the current (1-based) iteration count. Can be used in 114REPO_I is the current (1-based) iteration count. Can be used in