diff options
Diffstat (limited to 'subcmds/init.py')
| -rw-r--r-- | subcmds/init.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/subcmds/init.py b/subcmds/init.py index b0db76a4..32c85f79 100644 --- a/subcmds/init.py +++ b/subcmds/init.py | |||
| @@ -291,6 +291,15 @@ to update the working directory files. | |||
| 291 | if opt.submodules: | 291 | if opt.submodules: |
| 292 | m.config.SetBoolean('repo.submodules', opt.submodules) | 292 | m.config.SetBoolean('repo.submodules', opt.submodules) |
| 293 | 293 | ||
| 294 | if opt.git_lfs is not None: | ||
| 295 | if opt.git_lfs: | ||
| 296 | git_require((2, 17, 0), fail=True, msg='Git LFS support') | ||
| 297 | |||
| 298 | m.config.SetBoolean('repo.git-lfs', opt.git_lfs) | ||
| 299 | if not is_new: | ||
| 300 | print('warning: Changing --git-lfs settings will only affect new project checkouts.\n' | ||
| 301 | ' Existing projects will require manual updates.\n', file=sys.stderr) | ||
| 302 | |||
| 294 | if opt.use_superproject is not None: | 303 | if opt.use_superproject is not None: |
| 295 | m.config.SetBoolean('repo.superproject', opt.use_superproject) | 304 | m.config.SetBoolean('repo.superproject', opt.use_superproject) |
| 296 | 305 | ||
