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>
This commit is contained in:
parent
557399e9bd
commit
679e87c02b
@ -909,7 +909,6 @@ def main(args):
|
|||||||
|
|
||||||
if get_config('remote-hg.hg-git-compat') == 'true\n':
|
if get_config('remote-hg.hg-git-compat') == 'true\n':
|
||||||
hg_git_compat = True
|
hg_git_compat = True
|
||||||
track_branches = False
|
|
||||||
if get_config('remote-hg.track-branches') == 'false\n':
|
if get_config('remote-hg.track-branches') == 'false\n':
|
||||||
track_branches = False
|
track_branches = False
|
||||||
if get_config('remote-hg.force-push') == 'false\n':
|
if get_config('remote-hg.force-push') == 'false\n':
|
||||||
|
@ -102,6 +102,7 @@ setup () {
|
|||||||
) >> "$HOME"/.hgrc &&
|
) >> "$HOME"/.hgrc &&
|
||||||
git config --global receive.denycurrentbranch warn
|
git config --global receive.denycurrentbranch warn
|
||||||
git config --global remote-hg.hg-git-compat true
|
git config --global remote-hg.hg-git-compat true
|
||||||
|
git config --global remote-hg.track-branches false
|
||||||
|
|
||||||
HGEDITOR=/usr/bin/true
|
HGEDITOR=/usr/bin/true
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user