diff options
| author | Karel Kočí <cynerd@email.cz> | 2022-09-27 09:41:32 +0200 |
|---|---|---|
| committer | Karel Kočí <cynerd@email.cz> | 2022-09-27 09:41:32 +0200 |
| commit | 7a90b467f6ac04afc0a2ee581f451d319613070e (patch) | |
| tree | 7a9502cf6206a89e3e2ffb5caec56e7d05d181cc | |
| parent | 11340b9cfec893a455350c27518f1c04fc28af77 (diff) | |
| download | shellrc-7a90b467f6ac04afc0a2ee581f451d319613070e.tar.gz shellrc-7a90b467f6ac04afc0a2ee581f451d319613070e.tar.bz2 shellrc-7a90b467f6ac04afc0a2ee581f451d319613070e.zip | |
git: fix invalid check for branch existence
| -rw-r--r-- | shellrc.d/git | 2 |
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 |
