mirror of
https://git.alemi.dev/gitshell.git
synced 2024-12-25 04:24:53 +01:00
feat: use cgit ignore instead of custom ln hack
This commit is contained in:
parent
5e32a80357
commit
ee328d60a3
2 changed files with 2 additions and 2 deletions
2
hide
2
hide
|
@ -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
2
show
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue