From dc54a69b7552d8d44adf25b8009992c4a2b395be Mon Sep 17 00:00:00 2001 From: steering7253 Date: Mon, 18 May 2026 01:25:46 -0600 Subject: init --- hiderepo | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 hiderepo (limited to 'hiderepo') 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 -- cgit v1.3.1-10-gc9f91