diff options
author | Matt Moeller <moeller.matt@gmail.com> | 2024-09-04 13:55:47 -0500 |
---|---|---|
committer | LUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2025-06-30 15:27:26 -0700 |
commit | 21269c3eedc428610a5cab1494b2459a7e939fc7 (patch) | |
tree | 223b59d217edc5a95969f2db0f470446392690c7 | |
parent | 99b5a17f2c951fe5979100c36e7e1dbb4c61b36c (diff) | |
download | git-repo-main.tar.gz |
init: Add environment variable for git-lfsmain
Convenient way to always enable or disable git-lfs without having to
remember to put on the command line.
Useful if you want to ALWAYS have git-lfs enabled on your system when
you 'init' a new project.
Also useful if you are using the Jenkins repo plugin as it doesn't
provide an option for enabling git-lfs in its UI.
Change-Id: Ieb1bbe83de9c21523ab69b30fc5047c257d02731
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/437661
Commit-Queue: Scott Lee <ddoman@google.com>
Reviewed-by: Gavin Mak <gavinmak@google.com>
Reviewed-by: Fatahillah Wk <fatahillahwkwk@gmail.com>
Reviewed-by: Scott Lee <ddoman@google.com>
Tested-by: Matt Moeller <moeller.matt@gmail.com>
Reviewed-by: Yingchun Li <sword.l.dragon@gmail.com>
-rw-r--r-- | subcmds/init.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/subcmds/init.py b/subcmds/init.py index fb6d3eb5..f5a3892a 100644 --- a/subcmds/init.py +++ b/subcmds/init.py | |||
@@ -127,6 +127,7 @@ to update the working directory files. | |||
127 | return { | 127 | return { |
128 | "REPO_MANIFEST_URL": "manifest_url", | 128 | "REPO_MANIFEST_URL": "manifest_url", |
129 | "REPO_MIRROR_LOCATION": "reference", | 129 | "REPO_MIRROR_LOCATION": "reference", |
130 | "REPO_GIT_LFS": "git_lfs", | ||
130 | } | 131 | } |
131 | 132 | ||
132 | def _SyncManifest(self, opt): | 133 | def _SyncManifest(self, opt): |