feat: use cgit ignore instead of custom ln hack

This commit is contained in:
əlemi 2024-02-08 19:47:00 +01:00
parent 5e32a80357
commit ee328d60a3
2 changed files with 2 additions and 2 deletions

2
hide
View file

@ -20,6 +20,6 @@ if [ ! -d "/srv/git/.public/$REPONAME" ]; then
exit
fi
rm "/srv/git/.public/$REPONAME"
git config -f "/srv/git/$REPOSITORY/config" cgit.ignore 1
echo "[#] made $REPONAME hidden"

2
show
View file

@ -20,6 +20,6 @@ if [ ! -d "/srv/git/$REPOSITORY" ]; then
exit
fi
ln -s "/srv/git/$REPOSITORY" "/srv/git/.public/$REPONAME"
git config -f "/srv/git/$REPOSITORY/config" cgit.ignore 0
echo "[#] made $REPONAME publicly visible"