mirror of
https://github.com/git/git
synced 2024-10-28 19:25:47 +00:00
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
1 changed files with 1 additions and 0 deletions
|
@ -781,6 +781,7 @@ def get_repo(url, alias):
|
|||
|
||||
name = repo.user_transport.relpath(branch.base)
|
||||
name = name if name != '' else 'master'
|
||||
name = name.replace('/', '+')
|
||||
|
||||
if not is_local:
|
||||
peers[name] = branch
|
||||
|
|
Loading…
Reference in a new issue