mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-19 20:29:45 +01:00
fix(git): fix check in gbds
function
This commit is contained in:
parent
207d29b716
commit
f79647dba5
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ function gbds() {
|
||||||
git for-each-ref refs/heads/ "--format=%(refname:short)" | \
|
git for-each-ref refs/heads/ "--format=%(refname:short)" | \
|
||||||
while read branch; do
|
while read branch; do
|
||||||
local merge_base=$(git merge-base $default_branch $branch)
|
local merge_base=$(git merge-base $default_branch $branch)
|
||||||
if [[ '-*' == $(git cherry $default_branch $(git commit-tree $(git rev-parse $branch\^{tree}) -p $merge_base -m _)) ]]; then
|
if [[ $(git cherry $default_branch $(git commit-tree $(git rev-parse $branch\^{tree}) -p $merge_base -m _)) = -* ]]; then
|
||||||
git branch -D $branch
|
git branch -D $branch
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue