diff options
Diffstat (limited to '')
| -rwxr-xr-x | cgit/ssh/git-shell-commands/list | 13 |
1 files changed, 13 insertions, 0 deletions
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 "<no description>" + fi + echo "" +done + |
