Skip to content

Commit 06f4213

Browse files
felipecgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6373336 commit 06f4213

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/remote-helpers/git-remote-hg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ def main(args):
914914

915915
hg_git_compat = get_config_bool('remote-hg.hg-git-compat')
916916
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')
918918

919919
if hg_git_compat:
920920
mode = 'hg'

0 commit comments

Comments
 (0)