aboutsummaryrefslogtreecommitdiff
path: root/shellrc.d
diff options
context:
space:
mode:
Diffstat (limited to 'shellrc.d')
-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