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>
Felipe Contreras committed
Apr 30, 2013 at 20:10 UTC
42b48ef25d8c77f839d4a2d4cec9b65379ece63e
1 file changed
+1
contrib/remote-helpers/git-remote-bzr
+1
@@ -781,6 +781,7 @@ def get_repo(url, alias):
781
782
name = repo.user_transport.relpath(branch.base)
783
name = name if name != '' else 'master'
784
+ name = name.replace('/', '+')
785
786
if not is_local:
787
peers[name] = branch