From 45ed11f638444386d413266149edec03fef3814e Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds 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-54-g00ecf From 7d08c5f2a9f38c9d8780deaa27a5a8769f839eae Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds 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-54-g00ecf From 54887dea107480384a9031d778f2891fe46a7b86 Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds 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-54-g00ecf From d00c7af7a28fa9d061a00b3e9af6d31309d0ad7f Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds 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-54-g00ecf 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 +- git-shell-commands/help | 2 +- git-shell-commands/hook-install | 2 +- git-shell-commands/mirror | 2 +- git-shell-commands/mirrors | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (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 diff --git a/git-shell-commands/help b/git-shell-commands/help index 45f0bd6..e707df8 100755 --- a/git-shell-commands/help +++ b/git-shell-commands/help @@ -1,6 +1,6 @@ #!/bin/sh # * help -# Gets available commands +# Obtiene los comando habilitados # ssh git@host help set -e diff --git a/git-shell-commands/hook-install b/git-shell-commands/hook-install index cfd4962..08a0340 100755 --- a/git-shell-commands/hook-install +++ b/git-shell-commands/hook-install @@ -1,6 +1,6 @@ #!/bin/sh # * hook-install -# Installs a hook on a repo +# Instala un hook en un repo # ssh git@host hook-install hook script repo [alt-dir] set -e diff --git a/git-shell-commands/mirror b/git-shell-commands/mirror index c634b9e..212687e 100755 --- a/git-shell-commands/mirror +++ b/git-shell-commands/mirror @@ -1,6 +1,6 @@ #!/bin/sh # * mirror -# Mirrors a repository +# Espeja un repositorio # ssh git@host mirror git://url/repo.git set -E diff --git a/git-shell-commands/mirrors b/git-shell-commands/mirrors index d0ae3f4..d1301a8 100755 --- a/git-shell-commands/mirrors +++ b/git-shell-commands/mirrors @@ -1,6 +1,6 @@ #!/bin/sh # * mirrors -# Prints all mirrored repos +# Muestra todos los repositorios espejos (mirror) # ssh git@host mirrors set -e -- cgit v1.2.3-54-g00ecf