Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This patch addresses issue 12 described here: https://github.com/termie/git-bzr-ng/issues/#issue/12
There may be a better way of doing this. For example, storing it along with the other config options and passing it along to init_repo based on the desired branch, a la:
[bzr "master"]
bzr = bzr/master
format = pack-0.92
However, this did not look trivial, as init_repo seems to be frequently called without reference to a specific branch just to make sure directories are created. It could be that I missed something.
With this patch, you can do
git bzr clone --format=pack-0.92 PATH_TO_BZR_REPO
and then directly dogit bzr push
without specifying the format again -- though the push, sync, etc commands do also take a --format option if one desires to pass it for when init_repo is called to make sure the directory exists. I assume that the directory should only NOT exist if the user has done something weird / manual, thus being able to specify it manually for the other calls seemed to make sense.