From f985decc7edecd2376a4d08cdc29bbf42f18da12 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 7 Jul 2016 18:31:06 -0400 Subject: mv {misc/,}git-shell-commands ; remove everything else --- git-shell-commands/mirrors | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 git-shell-commands/mirrors (limited to 'git-shell-commands/mirrors') diff --git a/git-shell-commands/mirrors b/git-shell-commands/mirrors new file mode 100755 index 0000000..436564f --- /dev/null +++ b/git-shell-commands/mirrors @@ -0,0 +1,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$,,' -- cgit v1.2.3-54-g00ecf