diff options
| -rw-r--r-- | subcmds/init.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/subcmds/init.py b/subcmds/init.py index 53c6ba04..853cbe68 100644 --- a/subcmds/init.py +++ b/subcmds/init.py | |||
| @@ -127,6 +127,11 @@ to update the working directory files. | |||
| 127 | # anew. | 127 | # anew. |
| 128 | if not is_new: | 128 | if not is_new: |
| 129 | was_standalone_manifest = m.config.GetString('manifest.standalone') | 129 | was_standalone_manifest = m.config.GetString('manifest.standalone') |
| 130 | if was_standalone_manifest and not opt.manifest_url: | ||
| 131 | print('fatal: repo was initialized with a standlone manifest, ' | ||
| 132 | 'cannot be re-initialized without --manifest-url/-u') | ||
| 133 | sys.exit(1) | ||
| 134 | |||
| 130 | if opt.standalone_manifest or ( | 135 | if opt.standalone_manifest or ( |
| 131 | was_standalone_manifest and opt.manifest_url): | 136 | was_standalone_manifest and opt.manifest_url): |
| 132 | m.config.ClearCache() | 137 | m.config.ClearCache() |
