From 7a90b467f6ac04afc0a2ee581f451d319613070e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 27 Sep 2022 09:41:32 +0200 Subject: git: fix invalid check for branch existence --- shellrc.d/git | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shellrc.d/git b/shellrc.d/git index d219db3..15b949a 100644 --- a/shellrc.d/git +++ b/shellrc.d/git @@ -13,7 +13,7 @@ _gitbworktree() { gitbmerge() ( local branch="$1" set -e - if git rev-parse --quiet --verify "$branch" >/dev/null; then + if ! git rev-parse --quiet --verify "$branch" >/dev/null; then echo "No such branch: $branch" >&2 return 1 fi -- cgit v1.2.3