From df01883f9b09adcd13f42971a102812f1148408e Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Tue, 17 Mar 2009 08:15:27 -0700 Subject: [PATCH] Allow repo init to restart if URL was initially invalid 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 --- subcmds/init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. sys.exit(1) m.Sync_LocalHalf() - if is_new: + if is_new or m.CurrentBranch is None: m.StartBranch('default') def _LinkManifest(self, name):