summaryrefslogtreecommitdiff
path: root/git-shell-commands/mirrors
blob: d1301a84e7c107ee8455b4adfde4acc2203d1549 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
# * mirrors
#   Muestra todos los repositorios espejos (mirror)
#   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$,,'