summaryrefslogtreecommitdiff
path: root/git-shell-commands/ls-repos
blob: d6b4138f2fe0a3bc337c604107de07bfbf011039 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
# * ls-repos
#   List repos and URLs
#   Example: ls-repos

readonly URL=https://git.parabola.nu/


set -e


#find . -type f -name 'HEAD' | sed "s|\./\(.*\)/HEAD|${URL}\1|"
find . -type d -name '*.git' | sed "s|\./\(.*\)|${URL}\1|"