aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlocal/triggers/POST_GIT/fix_default_branch.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/local/triggers/POST_GIT/fix_default_branch.sh b/local/triggers/POST_GIT/fix_default_branch.sh
index 0c7c5ab..ee5173a 100755
--- a/local/triggers/POST_GIT/fix_default_branch.sh
+++ b/local/triggers/POST_GIT/fix_default_branch.sh
@@ -3,7 +3,7 @@
cd /srv/git/repositories/"$2".git
branch_count=$(git branch | wc -l)
-[ "${branch_count}" -le 2 ] || exit
+[ "${branch_count}" -eq 1 ] || exit
git for-each-ref --format='%(refname:short)' refs/heads/ | sort -d | while read -r branch; do
case "${branch}" in
main|master) : ;;