From 2cd9a4039c0c5f524df0a33605c9baef1f57917e Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sat, 4 Jul 2026 18:12:10 +0530 Subject: Add git shell commands --- cgit/ssh/git-shell-commands/list | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 cgit/ssh/git-shell-commands/list (limited to 'cgit/ssh/git-shell-commands/list') diff --git a/cgit/ssh/git-shell-commands/list b/cgit/ssh/git-shell-commands/list new file mode 100755 index 0000000..804a488 --- /dev/null +++ b/cgit/ssh/git-shell-commands/list @@ -0,0 +1,13 @@ +#!/usr/bin/env sh + +ls -1 /git | while IPS="" read name; do + echo "$name" + printf " description: " + if [ -f "/git/${name}/description" ]; then + cat "/git/${name}/description" + else + echo "" + fi + echo "" +done + -- cgit v1.3.1