diff options
| author | Akshay Nair <phenax5@gmail.com> | 2026-07-04 18:12:10 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2026-07-04 18:46:35 +0530 |
| commit | 2cd9a4039c0c5f524df0a33605c9baef1f57917e (patch) | |
| tree | 5e17ce2f0c78d663cf6f2f7be5abe769dc7a3f71 /cgit/ssh/git-shell-commands/list | |
| parent | ef34b26068c4e25f929a584edda63b8878c063b3 (diff) | |
| download | bacchus-remote-2cd9a4039c0c5f524df0a33605c9baef1f57917e.tar.gz bacchus-remote-2cd9a4039c0c5f524df0a33605c9baef1f57917e.zip | |
Add git shell commands
Diffstat (limited to 'cgit/ssh/git-shell-commands/list')
| -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 + |
