summaryrefslogtreecommitdiffstats
path: root/contrib/remote-helpers/git-remote-hg
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2013-05-14 06:36:29 +0200
committerJunio C Hamano <gitster@pobox.com>2013-05-15 21:40:16 +0200
commit06f42133550725d360c9b6acc3b3fa223fee6c47 (patch)
treed11d894df2f09c640551729643eee1fb3b22a706 /contrib/remote-helpers/git-remote-hg
parentremote-hg: fix new branch creation (diff)
downloadgit-06f42133550725d360c9b6acc3b3fa223fee6c47.tar.xz
git-06f42133550725d360c9b6acc3b3fa223fee6c47.zip
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>
Diffstat (limited to 'contrib/remote-helpers/git-remote-hg')
-rwxr-xr-xcontrib/remote-helpers/git-remote-hg2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/remote-helpers/git-remote-hg b/contrib/remote-helpers/git-remote-hg
index 3cf9b4c24a..53412dd91f 100755
--- a/contrib/remote-helpers/git-remote-hg
+++ b/contrib/remote-helpers/git-remote-hg
@@ -914,7 +914,7 @@ def main(args):
hg_git_compat = get_config_bool('remote-hg.hg-git-compat')
track_branches = get_config_bool('remote-hg.track-branches', True)
- force_push = get_config_bool('remote-hg.force-push', True)
+ force_push = get_config_bool('remote-hg.force-push')
if hg_git_compat:
mode = 'hg'