summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2013-05-14 04:36:26 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-05-15 19:33:15 (GMT)
commit679e87c02bf02b34fe4dba5bd09e17269223c96f (patch)
tree7c5c87f495d06cfef2209dd2e1f5114ec5840210 /contrib
parent557399e9bd2d2e8d13fac2ca9dbe4d6aa811e23c (diff)
downloadgit-679e87c02bf02b34fe4dba5bd09e17269223c96f.zip
git-679e87c02bf02b34fe4dba5bd09e17269223c96f.tar.gz
git-679e87c02bf02b34fe4dba5bd09e17269223c96f.tar.bz2
remote-hg: enable track-branches in hg-git mode
The user can turn this off. 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-hg1
-rwxr-xr-xcontrib/remote-helpers/test-hg-hg-git.sh1
2 files changed, 1 insertions, 1 deletions
diff --git a/contrib/remote-helpers/git-remote-hg b/contrib/remote-helpers/git-remote-hg
index 9d6940b..de3a96e 100755
--- a/contrib/remote-helpers/git-remote-hg
+++ b/contrib/remote-helpers/git-remote-hg
@@ -909,7 +909,6 @@ def main(args):
if get_config('remote-hg.hg-git-compat') == 'true\n':
hg_git_compat = True
- track_branches = False
if get_config('remote-hg.track-branches') == 'false\n':
track_branches = False
if get_config('remote-hg.force-push') == 'false\n':
diff --git a/contrib/remote-helpers/test-hg-hg-git.sh b/contrib/remote-helpers/test-hg-hg-git.sh
index 0c36573..7f579c8 100755
--- a/contrib/remote-helpers/test-hg-hg-git.sh
+++ b/contrib/remote-helpers/test-hg-hg-git.sh
@@ -102,6 +102,7 @@ setup () {
) >> "$HOME"/.hgrc &&
git config --global receive.denycurrentbranch warn
git config --global remote-hg.hg-git-compat true
+ git config --global remote-hg.track-branches false
HGEDITOR=/usr/bin/true