aboutsummaryrefslogtreecommitdiff
path: root/cgit/ssh/git-shell-commands/list
blob: 804a4888f8b27d497a54765f269c4c2a00b8cd6b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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