exclude the current branch
- ID
e10787b- date
2022-09-13 15:57:19+00:00- author
Alex Chan <alex@alexwlchan.net>- parent
cc780f0- message
exclude the current branch- changed files
1 file, 1 addition, 1 deletion
Changed files
cleanup_branches (1055) → cleanup_branches (1069)
diff --git a/cleanup_branches b/cleanup_branches
index 3bb7a5e..231f976 100755
--- a/cleanup_branches
+++ b/cleanup_branches
@@ -28,7 +28,7 @@ echo "Deduced primary branch as $PRIMARY_BRANCH"
CURRENT_BRANCH=$(git branch --show-current)
echo "Current branch is $CURRENT_BRANCH"
-for branch in $(git branch --merged "$PRIMARY_BRANCH")
+for branch in $(git branch --merged "$PRIMARY_BRANCH" | grep -v '*')
do
if [[ "$branch" == "$PRIMARY_BRANCH" ]]
then