OSDN Git Service

remote-hg: enable track-branches in hg-git mode
authorFelipe Contreras <felipe.contreras@gmail.com>
Tue, 14 May 2013 04:36:26 +0000 (23:36 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 15 May 2013 19:33:15 +0000 (12:33 -0700)
The user can turn this off.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/remote-helpers/git-remote-hg
contrib/remote-helpers/test-hg-hg-git.sh

index 9d6940b..de3a96e 100755 (executable)
@@ -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':
index 0c36573..7f579c8 100755 (executable)
@@ -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