From f275aa74f612f272426c5c35d4769cadba9f6ce8 Mon Sep 17 00:00:00 2001 From: Jan Sydänviita Date: Wed, 19 Aug 2026 22:10:39 +0300 Subject: Support private repos --- roles/jails/22_forge/files/git-shell-commands/new | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'roles/jails/22_forge/files/git-shell-commands') diff --git a/roles/jails/22_forge/files/git-shell-commands/new b/roles/jails/22_forge/files/git-shell-commands/new index ae4341b..b8f73a5 100644 --- a/roles/jails/22_forge/files/git-shell-commands/new +++ b/roles/jails/22_forge/files/git-shell-commands/new @@ -1,6 +1,7 @@ #!/bin/sh if [ -z "$1" ]; then echo "Usage: new [REPO_NAME]" + echo "Tip: prefix with '.' to make private (e.g. new .dotfiles)" exit 1 fi if [ -d "$1.git" ]; then @@ -11,4 +12,6 @@ git init --bare "$1.git" echo "$1" > "$1.git/description" echo "Created repository $1" echo "Clone: git@forge.jan.systems:$1.git" -echo "Web: https://forge.jan.systems/$1.git" +if [ "${1#.}" = "$1" ]; then + echo "Web: https://forge.jan.systems/$1.git" +fi -- cgit v1.3