rebase --root: stop assuming squash_onto is unset
authorPhillip Wood <phillip.wood@dunelm.org.uk>
Tue, 20 Mar 2018 10:03:13 +0000 (10:03 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 20 Mar 2018 17:17:39 +0000 (10:17 -0700)
If the user set the environment variable 'squash_onto', the 'rebase'
command would erroneously assume that the user passed the option
'--root'.

Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-rebase.sh
index fd72a35c65b43537b292445b87ffb7e682cc076a..8b1b892d72853b4256dd864637ccf44376350dff 100755 (executable)
@@ -60,6 +60,7 @@ $(gettext 'Resolve all conflicts manually, mark them as resolved with
 You can instead skip this commit: run "git rebase --skip".
 To abort and get back to the state before "git rebase", run "git rebase --abort".')
 "
+squash_onto=
 unset onto
 unset restrict_revision
 cmd=