summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn O. Pearce <sop@google.com>2009-03-17 08:15:27 -0700
committerShawn O. Pearce <sop@google.com>2009-03-17 08:15:27 -0700
commitdf01883f9b09adcd13f42971a102812f1148408e (patch)
tree591048750e348501010490b986116132ee564825
parent1fc99f4e472c86915cb1affd5507140277711227 (diff)
downloadgit-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>
-rw-r--r--subcmds/init.py2
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):