aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKylie McClain <kylie@somas.is>2020-08-28 00:43:05 -0400
committerKylie McClain <kylie@somas.is>2020-08-28 00:43:05 -0400
commitfa985abca6dda1b65244b0e067aceebd7cca38e2 (patch)
tree869f9f1f336de6f31f08333a93ccce6c49855adf
parent0012700ca7d4ce4ed177addaaf396ab8fd38a7ca (diff)
downloadgitolite-admin-fa985abca6dda1b65244b0e067aceebd7cca38e2.tar.gz
gitolite-admin-fa985abca6dda1b65244b0e067aceebd7cca38e2.tar.xz
gitolite-admin-fa985abca6dda1b65244b0e067aceebd7cca38e2.zip
fix_default_branch: don't run on forks
-rwxr-xr-xlocal/triggers/POST_GIT/fix_default_branch.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/local/triggers/POST_GIT/fix_default_branch.sh b/local/triggers/POST_GIT/fix_default_branch.sh
index ee5173a..1973773 100755
--- a/local/triggers/POST_GIT/fix_default_branch.sh
+++ b/local/triggers/POST_GIT/fix_default_branch.sh
@@ -1,5 +1,9 @@
#!/bin/sh
+case "${2}" in
+ */forks*) exit 0 ;;
+esac
+
cd /srv/git/repositories/"$2".git
branch_count=$(git branch | wc -l)