From 70e300179dc5e08cdef09aae154e66d4f78cbbf6 Mon Sep 17 00:00:00 2001 From: sandroid Date: Sat, 1 Jul 2023 19:18:38 +0200 Subject: [PATCH] Fix infinite loop when passing invalid arguments to gsp --- bin/git-forgit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/git-forgit b/bin/git-forgit index 45d323f..175cfed 100755 --- a/bin/git-forgit +++ b/bin/git-forgit @@ -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