mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
Support "repo init -b foo && repo sync" to switch baselines
We now correctly support re-initializing an existing client to point to a different branch of the same manifest repository, effectively allowing the client to switch the baseline it is operating on. Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
parent
5470df6219
commit
521cd3ce67
@ -126,7 +126,8 @@ default.xml will be used.
|
|||||||
|
|
||||||
m.Sync_NetworkHalf()
|
m.Sync_NetworkHalf()
|
||||||
m.Sync_LocalHalf()
|
m.Sync_LocalHalf()
|
||||||
m.StartBranch('default')
|
if is_new:
|
||||||
|
m.StartBranch('default')
|
||||||
|
|
||||||
def _LinkManifest(self, name):
|
def _LinkManifest(self, name):
|
||||||
if not name:
|
if not name:
|
||||||
|
Loading…
Reference in New Issue
Block a user