mirror of
https://git.alemi.dev/gitshell.git
synced 2024-11-14 03:39:20 +01:00
fix: also set cgit defbranch config
This commit is contained in:
parent
e67af53f1c
commit
da3234db98
1 changed files with 1 additions and 0 deletions
1
head
1
head
|
@ -25,6 +25,7 @@ fi
|
|||
cd "/srv/git/$REPOSITORY"
|
||||
git symbolic-ref HEAD "refs/heads/$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"
|
||||
|
||||
|
|
Loading…
Reference in a new issue