chore: Fix debug output

This commit is contained in:
Tracey Clark 2025-12-28 13:23:44 -06:00
commit 34598198c0

View file

@ -4,7 +4,8 @@
git remote prune origin
GONE_BRANCHES=$(git branch -vv | grep 'origin/.*: gone]' | awk '{print $1}')
echo "[DEBUG]: $GONE_BRANCHES"
echo "[DEBUG] gone branches:"
echo "$GONE_BRANCHES"
if [ -z "$GONE_BRANCHES" ]; then
echo "Could not find any local branches where the remote is gone"
@ -22,7 +23,7 @@ else
fi
if [ "$FAILED_TO_DELETE" = "true" ]; then
# echo "error: Some local branches are not fully merged."
echo "error: Some local branches are not fully merged."
echo
echo "If you are sure you want to delete all branches above, run 'git-glean -f'"
fi