summaryrefslogtreecommitdiff
path: root/git-shell-commands/mirrors
blob: 436564f7031e051072d7416ae8ff3fefcfe9dfe4 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh
# * mirrors
#   Muestra todos los repositorios espejos (mirror)
#   ssh git@host mirrors

set -e

# Find all mirrors
find $(find * -name '*.git' -type d) -maxdepth 1 -name config -exec grep -l 'mirror\s*=\s*true' {} + | sed 's,/config$,,'