[PATCH v2 10/18] remote-bzr: fix branch names
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- May 1, 2013, 01:10 UTC
- Message-ID
- <1367370610-14250-11-git-send-email-felipe.contreras@gmail.com>
- In-Reply-To
- <1367370610-14250-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.3.rc0.399.gc96a135