[PATCH 10/20] remote-bzr: fix branch names
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- Apr 26, 2013, 01:07 UTC
- Message-ID
- <1366938488-25425-11-git-send-email-felipe.contreras@gmail.com>
- In-Reply-To
- <1366938488-25425-1-git-send-email-felipe.contreras@gmail.com>
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> --- contrib/remote-helpers/git-remote-bzr | 1 + 1 file changed, 1 insertion(+)
diff --git a/contrib/remote-helpers/git-remote-bzr b/contrib/remote-helpers/git-remote-bzr index 3b33061..38cec07 100755 --- a/contrib/remote-helpers/git-remote-bzr +++ b/contrib/remote-helpers/git-remote-bzr @@ -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
-- 1.8.2.1.884.g3532a8d