Skip to content

Commit 21269c3

Browse files
Matt MoellerLUCI
authored andcommitted
init: Add environment variable for git-lfs
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 <[email protected]> Reviewed-by: Gavin Mak <[email protected]> Reviewed-by: Fatahillah Wk <[email protected]> Reviewed-by: Scott Lee <[email protected]> Tested-by: Matt Moeller <[email protected]> Reviewed-by: Yingchun Li <[email protected]>
1 parent 99b5a17 commit 21269c3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

subcmds/init.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ def _RegisteredEnvironmentOptions(self):
127127
return {
128128
"REPO_MANIFEST_URL": "manifest_url",
129129
"REPO_MIRROR_LOCATION": "reference",
130+
"REPO_GIT_LFS": "git_lfs",
130131
}
131132

132133
def _SyncManifest(self, opt):

0 commit comments

Comments
 (0)