diff options
| author | Jan Sydänviita <jan@sydanviita.fi> | 2026-08-19 21:22:07 +0300 |
|---|---|---|
| committer | Jan Sydänviita <jan@sydanviita.fi> | 2026-08-19 21:22:07 +0300 |
| commit | d11727b0f16239d0871ca89461e36c9431e910b2 (patch) | |
| tree | 2edf0b62a1b909d43f777fe6d9a80ed4eac59593 | |
| parent | 781a0a7d671758b2c34147c5dc1477d69ffba544 (diff) | |
Improvements to forge
| -rw-r--r-- | roles/jails/22_forge/files/cgit.css | 6 | ||||
| -rw-r--r-- | roles/jails/22_forge/files/git-shell-commands/describe | 3 | ||||
| -rw-r--r-- | roles/jails/22_forge/files/git-shell-commands/new | 2 |
3 files changed, 10 insertions, 1 deletions
diff --git a/roles/jails/22_forge/files/cgit.css b/roles/jails/22_forge/files/cgit.css index 007cd8c..4a149f5 100644 --- a/roles/jails/22_forge/files/cgit.css +++ b/roles/jails/22_forge/files/cgit.css @@ -468,3 +468,9 @@ select { border: 1px solid var(--color); padding: 8px 10px; } + +/* Hide idle/age column in repo index */ +table[summary="repository list"] tr th:nth-child(3), +table[summary="repository list"] tr td:nth-child(3) { + display: none; +} diff --git a/roles/jails/22_forge/files/git-shell-commands/describe b/roles/jails/22_forge/files/git-shell-commands/describe index b5b0451..43f75db 100644 --- a/roles/jails/22_forge/files/git-shell-commands/describe +++ b/roles/jails/22_forge/files/git-shell-commands/describe @@ -1,6 +1,7 @@ #!/bin/sh -if [ -z "$1" ] || [ -z "$2" ]; then +if [ "$#" -ne 2 ]; then echo "Usage: describe [REPO_NAME] [DESCRIPTION]" + echo "Note: quote the description if it contains spaces" exit 1 fi if [ ! -d "$1.git" ]; then diff --git a/roles/jails/22_forge/files/git-shell-commands/new b/roles/jails/22_forge/files/git-shell-commands/new index ba67bc4..ae4341b 100644 --- a/roles/jails/22_forge/files/git-shell-commands/new +++ b/roles/jails/22_forge/files/git-shell-commands/new @@ -10,3 +10,5 @@ fi 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" |
