diff --git a/hide b/hide index 206044f..5f8ab2d 100755 --- a/hide +++ b/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" diff --git a/show b/show index ccda755..2ae96d6 100755 --- a/show +++ b/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"