summaryrefslogtreecommitdiff
path: root/git-shell-commands/mirrors
blob: d0ae3f4fdf17ae17b2f94417238c8fcb5d4e1589 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
# * mirrors
#   Prints all mirrored repos
#   ssh git@host mirrors

set -e

# Find all mirrors
find *.git -maxdepth 1 -iname config -print0 | \
  xargs -0 grep -l 'mirror = true' | \
  sed 's,/config$,,'