diff options
Diffstat (limited to 'hiderepo')
| -rwxr-xr-x | hiderepo | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/hiderepo b/hiderepo new file mode 100755 index 0000000..2b3c9e3 --- /dev/null +++ b/hiderepo @@ -0,0 +1,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 |
