remote-hg: disable forced push by default
In certain situations we might end up pushing garbage revisions (e.g. in a rebase), and the patches to deal with that haven't been merged yet. So let's disable forced pushes by default. We are essentially reverting back to the old v1.8.2 behavior, to minimize the possibility of regressions, but in a way the user can configure. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Felipe Contreras committed
May 13, 2013 at 23:36 UTC
06f42133550725d360c9b6acc3b3fa223fee6c47
1 file changed
+1
-1
contrib/remote-helpers/git-remote-hg
+1
-1
@@ -914,7 +914,7 @@ def main(args):
914
915
hg_git_compat = get_config_bool('remote-hg.hg-git-compat')
916
track_branches = get_config_bool('remote-hg.track-branches', True)
917
- force_push = get_config_bool('remote-hg.force-push', True)
917
+ force_push = get_config_bool('remote-hg.force-push')
918
919
if hg_git_compat:
920
mode = 'hg'