Skip to content

Commit 42b48ef

Browse files
Felipe Contrerasgitster
authored andcommitted
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>
1 parent 95b0c60 commit 42b48ef

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

contrib/remote-helpers/git-remote-bzr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -781,6 +781,7 @@ def get_repo(url, alias):
781781

782782
name = repo.user_transport.relpath(branch.base)
783783
name = name if name != '' else 'master'
784+
name = name.replace('/', '+')
784785

785786
if not is_local:
786787
peers[name] = branch

0 commit comments

Comments
 (0)