diff options
Diffstat (limited to 'subcmds/init.py')
| -rw-r--r-- | subcmds/init.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/subcmds/init.py b/subcmds/init.py index 20030068..94bd44ca 100644 --- a/subcmds/init.py +++ b/subcmds/init.py | |||
| @@ -490,6 +490,14 @@ to update the working directory files. | |||
| 490 | opt.quiet = opt.output_mode is False | 490 | opt.quiet = opt.output_mode is False |
| 491 | opt.verbose = opt.output_mode is True | 491 | opt.verbose = opt.output_mode is True |
| 492 | 492 | ||
| 493 | rp = self.manifest.repoProject | ||
| 494 | |||
| 495 | # Handle new --repo-url requests. | ||
| 496 | if opt.repo_url: | ||
| 497 | remote = rp.GetRemote('origin') | ||
| 498 | remote.url = opt.repo_url | ||
| 499 | remote.Save() | ||
| 500 | |||
| 493 | if opt.worktree: | 501 | if opt.worktree: |
| 494 | # Older versions of git supported worktree, but had dangerous gc bugs. | 502 | # Older versions of git supported worktree, but had dangerous gc bugs. |
| 495 | git_require((2, 15, 0), fail=True, msg='git gc worktree corruption') | 503 | git_require((2, 15, 0), fail=True, msg='git gc worktree corruption') |
