I have a repository on GitHub which depends on two projects which are developed in Bazaar. Currently I just download and unpack sources, but it would be nice if I could actually keep their history. Is there a simple solution for this?
Asked
Active
Viewed 703 times
1 Answers
2
If you want the history to be shared between Git and Bzr, consider using a third-party bi-directional bridge between Git and Bzr. There are many like this one.
EDIT: There's now a git-remote-bzr
in contrib/ of git.git. Use that.

artagnon
- 3,609
- 3
- 23
- 26
-
git-bzr demonstrates how to have a bzr repository as a git *branch*, but how would one make this a git submodule? – drfrogsplat May 20 '11 at 03:12
-
Am I misunderstanding something? Use `git submodule` to make that repository with imported history a submodule in the main repository. – artagnon Jun 01 '11 at 11:31
-
Here is a link for it: https://github.com/git/git/blob/master/contrib/remote-helpers/git-remote-bzr – Daniel Reis Dec 19 '13 at 10:17
-
`git-remote-bzr` is now maintained separately from git, and is available here: https://github.com/felipec/git-remote-bzr. Running `git submodule add bzr::REPO` with `git-remote-bzr` installed, however, fails with the error message "fatal: transport 'bzr' not allowed" for me (Git version 1.9.1). – zrajm Mar 22 '16 at 15:41
-
1@zrajm: `export GIT_ALLOW_PROTOCOL=file:git:http:https:ssh:bzr` fixes that issue. Submodules are restricted to prevent arbitrary command execution. See https://github.com/git/git/commit/33cfccbbf35a56e190b79bdec5c85457c952a021 – Forrest Voight Apr 17 '16 at 05:02