]> git.ipfire.org Git - thirdparty/git.git/commitdiff
rebase: fix documentation about used shell in -x
authorNikolay Borisov <nik.borisov@suse.com>
Wed, 17 Jan 2024 08:53:47 +0000 (10:53 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 18 Jan 2024 00:14:57 +0000 (16:14 -0800)
The shell used when using the -x option is erroneously documented to be
the one pointed to by the $SHELL environmental variable. This was true
when rebase was implemented as a shell script but this is no longer
true.

Signed-off-by: Nikolay Borisov <nik.borisov@suse.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-rebase.txt

index b4526ca24612803e7b9a5242d706afd0459b7089..8a95b5d7ab03817ac411b99875bf5cae7502bc78 100644 (file)
@@ -957,10 +957,9 @@ The interactive rebase will stop when a command fails (i.e. exits with
 non-0 status) to give you an opportunity to fix the problem. You can
 continue with `git rebase --continue`.
 
-The "exec" command launches the command in a shell (the one specified
-in `$SHELL`, or the default shell if `$SHELL` is not set), so you can
-use shell features (like "cd", ">", ";" ...). The command is run from
-the root of the working tree.
+The "exec" command launches the command in a shell (the default one, usually
+/bin/sh), so you can use shell features (like "cd", ">", ";" ...). The command
+is run from the root of the working tree.
 
 ----------------------------------
 $ git rebase -i --exec "make test"