stash: drop superfluos pathspec parameter
authorThomas Gummerer <t.gummerer@gmail.com>
Wed, 21 Mar 2018 21:53:10 +0000 (21:53 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 21 Mar 2018 22:07:46 +0000 (15:07 -0700)
Since 833622a945 ("stash push: avoid printing errors", 2018-03-19) we
don't use the 'git clean' call for the pathspec case anymore. The
commit however forgot to remove the pathspec argument to the call.
Remove the superfluos argument to make the code a little more obvious.

Signed-off-by: Thomas Gummerer <t.gummerer@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-stash.sh
index 4e55f278bd41abc009539e61d125475b4bdfdee6..d31924aea3a03d6f7efc66c03a293406821f1af2 100755 (executable)
@@ -310,7 +310,7 @@ push_stash () {
                test "$untracked" = "all" && CLEAN_X_OPTION=-x || CLEAN_X_OPTION=
                if test -n "$untracked" && test $# = 0
                then
-                       git clean --force --quiet -d $CLEAN_X_OPTION -- "$@"
+                       git clean --force --quiet -d $CLEAN_X_OPTION
                fi
 
                if test $# != 0