1
0
Fork 0

Fix output parsing for gone branches

This commit is contained in:
Knut Ahlers 2016-11-30 12:43:28 +01:00
parent 420f624845
commit adabbd2887
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -25,6 +25,6 @@ for branch in $(git branch --merged | grep -v '^*'); do
done
step "Removing local branches where remote branch is gone..."
if ( git branch -vv | grep -q ': gone ]' ); then
if ( git branch -vv | grep -q ': gone]' ); then
git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -D
fi