summaryrefslogtreecommitdiff
path: root/git-shell-commands/fetch-mirrors
blob: a9442bace232626371a0e5001d6df98c16b6a810 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
# * fetch-mirrors
#   Actualiza el `mirrors` (espejos) creados con `mirror`
#   ssh git@host fetch-mirrors

set -e

# Find all mirrors
~/git-shell-commands/mirrors | \
  while read _mirror; do

    pushd "$_mirror" >/dev/null

    git remote update

    popd >/dev/null

done

exit $?