summaryrefslogtreecommitdiff
path: root/hiderepo
blob: 2b3c9e3761ef0de6d24ed136df96bae4a9ac59d3 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash
# Hide a repo from the web interface.
# This DOES NOT prevent users from cloning the repo.

if [[ $1 == *..* ]]; then
	echo "No .." >&2
	exit 1
fi

git -C "$HOME/$1.git" config --local cgit.hide 1