Skip to content

Commit 42b48ef

Browse files
felipecgitster
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 95b0c60 commit 42b48ef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)