diff options
Diffstat (limited to 'git-shell-commands/mirrors')
-rwxr-xr-x | git-shell-commands/mirrors | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/git-shell-commands/mirrors b/git-shell-commands/mirrors new file mode 100755 index 0000000..d1301a8 --- /dev/null +++ b/git-shell-commands/mirrors @@ -0,0 +1,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$,,' |