Skip to content

Commit 3532786

Browse files
tgummerergitster
authored andcommitted
stash: drop superfluos pathspec parameter
Since 833622a ("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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d319bb1 commit 3532786

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-stash.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ push_stash () {
310310
test "$untracked" = "all" && CLEAN_X_OPTION=-x || CLEAN_X_OPTION=
311311
if test -n "$untracked" && test $# = 0
312312
then
313-
git clean --force --quiet -d $CLEAN_X_OPTION -- "$@"
313+
git clean --force --quiet -d $CLEAN_X_OPTION
314314
fi
315315

316316
if test $# != 0

0 commit comments

Comments
 (0)