summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2013-05-14 04:36:28 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-05-15 19:35:51 (GMT)
commit637333673a156898087e87f551a6eb1f9405e39d (patch)
tree3edc3515ca6067b15b62e3aa319f8b50716d279b /contrib
parent760ee1c70a4dbbc792a4bb31731576d8648d24f4 (diff)
downloadgit-637333673a156898087e87f551a6eb1f9405e39d.zip
git-637333673a156898087e87f551a6eb1f9405e39d.tar.gz
git-637333673a156898087e87f551a6eb1f9405e39d.tar.bz2
remote-hg: fix new branch creation
When a user creates a new branch with git: % git checkout -b branches/devel and then pushes this branch % git push origin branches/devel which is the way to push new mercurial branches, we do want to create a branch, but the command would fail without newbranch=True. This only matters when force_push=False, but setting newbranch=True unconditionally does not hurt. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/remote-helpers/git-remote-hg2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/remote-helpers/git-remote-hg b/contrib/remote-helpers/git-remote-hg
index 4a5c72f..3cf9b4c 100755
--- a/contrib/remote-helpers/git-remote-hg
+++ b/contrib/remote-helpers/git-remote-hg
@@ -856,7 +856,7 @@ def do_export(parser):
continue
if peer:
- parser.repo.push(peer, force=force_push)
+ parser.repo.push(peer, force=force_push, newbranch=True)
# handle bookmarks
for bmark, node in p_bmarks: