aboutsummaryrefslogtreecommitdiffstats
path: root/roles/jails/22_forge/files/git-shell-commands
diff options
context:
space:
mode:
Diffstat (limited to 'roles/jails/22_forge/files/git-shell-commands')
-rw-r--r--roles/jails/22_forge/files/git-shell-commands/new5
1 files changed, 4 insertions, 1 deletions
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