[PATCH 20/20] remote-bzr: export HEAD
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- Apr 26, 2013, 01:08 UTC
- Message-ID
- <1366938488-25425-21-git-send-email-felipe.contreras@gmail.com>
- In-Reply-To
- <1366938488-25425-1-git-send-email-felipe.contreras@gmail.com>
It probably doesn't make any difference, since we usually fetch along the 'master' branch, and when we don't probably the current transport-helper code doesn't work correctly.
But if it did work correctly, this might be useful.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> --- contrib/remote-helpers/git-remote-bzr | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/contrib/remote-helpers/git-remote-bzr b/contrib/remote-helpers/git-remote-bzr index 3c59a18..41c26a7 100755 --- a/contrib/remote-helpers/git-remote-bzr +++ b/contrib/remote-helpers/git-remote-bzr @@ -412,6 +412,8 @@ def do_import(parser): while parser.check('import'): ref = parser[1] + if ref == 'HEAD': + export_branch(repo, 'master') if ref.startswith('refs/heads/'): name = ref[len('refs/heads/'):] export_branch(repo, name)
-- 1.8.2.1.884.g3532a8d