diff options
| author | Shawn O. Pearce <sop@google.com> | 2009-03-17 08:15:27 -0700 |
|---|---|---|
| committer | Shawn O. Pearce <sop@google.com> | 2009-03-17 08:15:27 -0700 |
| commit | df01883f9b09adcd13f42971a102812f1148408e (patch) | |
| tree | 591048750e348501010490b986116132ee564825 /subcmds/init.py | |
| parent | 1fc99f4e472c86915cb1affd5507140277711227 (diff) | |
| download | git-repo-df01883f9b09adcd13f42971a102812f1148408e.tar.gz | |
Allow repo init to restart if URL was initially invalidv1.6.3
This allows the user to run "repo init -u" again after an
initial attempt failed due to an invalid URL.
Signed-off-by: Shawn O. Pearce <sop@google.com>
Diffstat (limited to 'subcmds/init.py')
| -rw-r--r-- | subcmds/init.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/subcmds/init.py b/subcmds/init.py index 04de48a7..83ed2b62 100644 --- a/subcmds/init.py +++ b/subcmds/init.py | |||
| @@ -130,7 +130,7 @@ default.xml will be used. | |||
| 130 | sys.exit(1) | 130 | sys.exit(1) |
| 131 | 131 | ||
| 132 | m.Sync_LocalHalf() | 132 | m.Sync_LocalHalf() |
| 133 | if is_new: | 133 | if is_new or m.CurrentBranch is None: |
| 134 | m.StartBranch('default') | 134 | m.StartBranch('default') |
| 135 | 135 | ||
| 136 | def _LinkManifest(self, name): | 136 | def _LinkManifest(self, name): |
