diff options
| author | Jan Sydänviita <jan@sydanviita.fi> | 2026-08-19 22:10:39 +0300 |
|---|---|---|
| committer | Jan Sydänviita <jan@sydanviita.fi> | 2026-08-19 22:10:39 +0300 |
| commit | f275aa74f612f272426c5c35d4769cadba9f6ce8 (patch) | |
| tree | f5f0e480267f00c450226849fef6a7189c23baa7 /roles/jails/22_forge/files/git-shell-commands/new | |
| parent | d11727b0f16239d0871ca89461e36c9431e910b2 (diff) | |
Support private repos
Diffstat (limited to 'roles/jails/22_forge/files/git-shell-commands/new')
| -rw-r--r-- | roles/jails/22_forge/files/git-shell-commands/new | 5 |
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 |
