From 21269c3eedc428610a5cab1494b2459a7e939fc7 Mon Sep 17 00:00:00 2001 From: Matt Moeller Date: Wed, 4 Sep 2024 13:55:47 -0500 Subject: 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 Reviewed-by: Gavin Mak Reviewed-by: Fatahillah Wk Reviewed-by: Scott Lee Tested-by: Matt Moeller Reviewed-by: Yingchun Li --- subcmds/init.py | 1 + 1 file changed, 1 insertion(+) (limited to 'subcmds/init.py') 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. return { "REPO_MANIFEST_URL": "manifest_url", "REPO_MIRROR_LOCATION": "reference", + "REPO_GIT_LFS": "git_lfs", } def _SyncManifest(self, opt): -- cgit v1.2.3-54-g00ecf