remote-bzr: fix branch names
When branches have '/' in their name (aka. sub-branches), bazaar seems to choke while creating the new directory. Also, git cannot have both 'foo' and 'foo/bar'. So let's replace slashes with a plus sign. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
95b0c60831
commit
42b48ef25d
@ -781,6 +781,7 @@ def get_repo(url, alias):
|
|||||||
|
|
||||||
name = repo.user_transport.relpath(branch.base)
|
name = repo.user_transport.relpath(branch.base)
|
||||||
name = name if name != '' else 'master'
|
name = name if name != '' else 'master'
|
||||||
|
name = name.replace('/', '+')
|
||||||
|
|
||||||
if not is_local:
|
if not is_local:
|
||||||
peers[name] = branch
|
peers[name] = branch
|
||||||
|
Loading…
Reference in New Issue
Block a user