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/fetch-mirrors | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 git-shell-commands/fetch-mirrors (limited to 'git-shell-commands/fetch-mirrors') diff --git a/git-shell-commands/fetch-mirrors b/git-shell-commands/fetch-mirrors new file mode 100755 index 0000000..15bf9c4 --- /dev/null +++ b/git-shell-commands/fetch-mirrors @@ -0,0 +1,13 @@ +#!/bin/sh +# * fetch-mirrors +# Actualiza el `mirrors` (espejos) creados con `mirror` +# ssh git@host fetch-mirrors + +set -e + +# Find all mirrors +"$(dirname "$0")"/mirrors | while read -r mirror; do + pushd "$mirror" >/dev/null + git remote update + popd >/dev/null +done -- cgit v1.2.3-54-g00ecf