#!/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