mirror of
https://git.alemi.dev/gitshell.git
synced 2024-11-23 07:54:50 +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
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm "/srv/git/.public/$REPONAME"
|
git config -f "/srv/git/$REPOSITORY/config" cgit.ignore 1
|
||||||
|
|
||||||
echo "[#] made $REPONAME hidden"
|
echo "[#] made $REPONAME hidden"
|
||||||
|
|
2
show
2
show
|
@ -20,6 +20,6 @@ if [ ! -d "/srv/git/$REPOSITORY" ]; then
|
||||||
exit
|
exit
|
||||||
fi
|
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"
|
echo "[#] made $REPONAME publicly visible"
|
||||||
|
|
Loading…
Reference in a new issue