fix: also set cgit defbranch config

This commit is contained in:
əlemi 2024-02-08 19:47:41 +01:00
parent e67af53f1c
commit da3234db98

1
head
View file

@ -25,6 +25,7 @@ fi
cd "/srv/git/$REPOSITORY" cd "/srv/git/$REPOSITORY"
git symbolic-ref HEAD "refs/heads/$2" git symbolic-ref HEAD "refs/heads/$2"
git config -f "/srv/git/$REPOSITORY/config" init.defaultBranch "$2" git config -f "/srv/git/$REPOSITORY/config" init.defaultBranch "$2"
git config -f "/srv/git/$REPOSITORY/config" cgit.defbranch "$2"
echo "Changed HEAD of $REPOSITORY to refs/heads/$2" echo "Changed HEAD of $REPOSITORY to refs/heads/$2"