Fix infinite loop when passing invalid arguments to gsp

This commit is contained in:
sandroid 2023-07-01 19:18:38 +02:00
parent c78c10a028
commit 70e300179d

View file

@ -249,7 +249,7 @@ _forgit_stash_push() {
# ignore -u as it's used implicitly
-u|--include-untracked) shift ;;
# pass to git directly when encountering anything else
*) $git_stash_push "${args[@]}" && return $?
*) $git_stash_push "${args[@]}"; return $?
esac
done
local opts preview files