From 45ed11f638444386d413266149edec03fef3814e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Reynolds?= Date: Mon, 10 Dec 2012 19:40:33 -0300 Subject: Work with mirrors --- git-shell-commands/fetch-mirrors | 20 ++++++++++++++++++++ 1 file changed, 20 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..62ed9f1 --- /dev/null +++ b/git-shell-commands/fetch-mirrors @@ -0,0 +1,20 @@ +#!/bin/sh +# * fetch-mirrors +# Updates mirrors created with `mirror` +# ssh git@host fetch-mirrors + +set -e + +# Find all mirrors +mirrors | \ + while read _mirror; do + + pushd "$_mirror" >/dev/null + + git fetch + + popd >dev/null + +done + +exit $? -- cgit v1.2.3-2-g168b From 7d08c5f2a9f38c9d8780deaa27a5a8769f839eae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Reynolds?= Date: Mon, 10 Dec 2012 19:44:53 -0300 Subject: Point to the full mirrors path --- git-shell-commands/fetch-mirrors | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git-shell-commands/fetch-mirrors') diff --git a/git-shell-commands/fetch-mirrors b/git-shell-commands/fetch-mirrors index 62ed9f1..1a24215 100755 --- a/git-shell-commands/fetch-mirrors +++ b/git-shell-commands/fetch-mirrors @@ -6,7 +6,7 @@ set -e # Find all mirrors -mirrors | \ +~/git-shell-commands/mirrors | \ while read _mirror; do pushd "$_mirror" >/dev/null -- cgit v1.2.3-2-g168b From 54887dea107480384a9031d778f2891fe46a7b86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Reynolds?= Date: Mon, 10 Dec 2012 19:45:34 -0300 Subject: Typo --- git-shell-commands/fetch-mirrors | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git-shell-commands/fetch-mirrors') diff --git a/git-shell-commands/fetch-mirrors b/git-shell-commands/fetch-mirrors index 1a24215..b2a1350 100755 --- a/git-shell-commands/fetch-mirrors +++ b/git-shell-commands/fetch-mirrors @@ -13,7 +13,7 @@ set -e git fetch - popd >dev/null + popd >/dev/null done -- cgit v1.2.3-2-g168b From d00c7af7a28fa9d061a00b3e9af6d31309d0ad7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Reynolds?= Date: Mon, 10 Dec 2012 19:57:25 -0300 Subject: Update mirror according to StackOverflow http://stackoverflow.com/questions/6150188/how-to-update-a-git-clone-mirror --- git-shell-commands/fetch-mirrors | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git-shell-commands/fetch-mirrors') diff --git a/git-shell-commands/fetch-mirrors b/git-shell-commands/fetch-mirrors index b2a1350..6268bf9 100755 --- a/git-shell-commands/fetch-mirrors +++ b/git-shell-commands/fetch-mirrors @@ -11,7 +11,7 @@ set -e pushd "$_mirror" >/dev/null - git fetch + git remote update popd >/dev/null -- cgit v1.2.3-2-g168b From 8b9cc4cc3f034fc3f23440c56e19a0d801b5482e Mon Sep 17 00:00:00 2001 From: Ernesto Bazzano Date: Wed, 17 Apr 2013 20:27:37 -0300 Subject: en castillo --- git-shell-commands/fetch-mirrors | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git-shell-commands/fetch-mirrors') diff --git a/git-shell-commands/fetch-mirrors b/git-shell-commands/fetch-mirrors index 6268bf9..a9442ba 100755 --- a/git-shell-commands/fetch-mirrors +++ b/git-shell-commands/fetch-mirrors @@ -1,6 +1,6 @@ #!/bin/sh # * fetch-mirrors -# Updates mirrors created with `mirror` +# Actualiza el `mirrors` (espejos) creados con `mirror` # ssh git@host fetch-mirrors set -e -- cgit v1.2.3-2-g168b