delete-squashed-branches: Make branch checkout side effect clear

This commit is contained in:
Vladimir Jimenez 2021-05-24 13:55:32 -07:00
parent 910242c92b
commit fb1e5db6d7
No known key found for this signature in database
GPG key ID: F2846589DCF1211D

View file

@ -5,7 +5,7 @@ targetBranch=$1
if [[ -z $targetBranch ]]; then
targetBranch=$(git rev-parse --abbrev-ref HEAD)
else
git checkout -q $targetBranch
git checkout $targetBranch
fi
git for-each-ref refs/heads/ "--format=%(refname:short)" | while read branch; do