aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2022-09-27 09:41:32 +0200
committerKarel Kočí <cynerd@email.cz>2022-09-27 09:41:32 +0200
commit7a90b467f6ac04afc0a2ee581f451d319613070e (patch)
tree7a9502cf6206a89e3e2ffb5caec56e7d05d181cc
parent11340b9cfec893a455350c27518f1c04fc28af77 (diff)
downloadshellrc-7a90b467f6ac04afc0a2ee581f451d319613070e.tar.gz
shellrc-7a90b467f6ac04afc0a2ee581f451d319613070e.tar.bz2
shellrc-7a90b467f6ac04afc0a2ee581f451d319613070e.zip
git: fix invalid check for branch existence
-rw-r--r--shellrc.d/git2
1 files changed, 1 insertions, 1 deletions
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