From 34feece7f514207ac129da60d90d2175d5a7951e Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds Date: Wed, 5 Sep 2012 12:57:50 -0300 Subject: Mirror a remote repo --- git-shell-commands/mirror | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 git-shell-commands/mirror (limited to 'git-shell-commands/mirror') diff --git a/git-shell-commands/mirror b/git-shell-commands/mirror new file mode 100755 index 0000000..2bf9a49 --- /dev/null +++ b/git-shell-commands/mirror @@ -0,0 +1,11 @@ +#!/bin/sh +# Mirrors a repository +# ssh git@host mirror git://url/repo.git + +set -E + +repo="`basename "$1"`.git" + +git clone --mirror $1 $repo + +exit $? -- cgit v1.2.3-54-g00ecf From e3031ab2c30e2fd97aaa0b3c93b6342bb7e7db85 Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds Date: Wed, 5 Sep 2012 13:02:02 -0300 Subject: Allow multiple mirrors, remove extra .git$ --- git-shell-commands/mirror | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'git-shell-commands/mirror') diff --git a/git-shell-commands/mirror b/git-shell-commands/mirror index 2bf9a49..6a2c254 100755 --- a/git-shell-commands/mirror +++ b/git-shell-commands/mirror @@ -4,8 +4,8 @@ set -E -repo="`basename "$1"`.git" - -git clone --mirror $1 $repo +for _m in $@; do + git clone --mirror $_m +done exit $? -- cgit v1.2.3-54-g00ecf From 791d3e1553d0a8b4103bb499fce26688b8cf217a Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds Date: Sat, 8 Sep 2012 20:11:43 -0300 Subject: Retrieve help --- git-shell-commands/change-description | 5 +++-- git-shell-commands/create-bare-repo | 5 +++-- git-shell-commands/help | 12 ++++++++++++ git-shell-commands/mirror | 5 +++-- 4 files changed, 21 insertions(+), 6 deletions(-) create mode 100755 git-shell-commands/help (limited to 'git-shell-commands/mirror') diff --git a/git-shell-commands/change-description b/git-shell-commands/change-description index d29eaa8..c8abdab 100755 --- a/git-shell-commands/change-description +++ b/git-shell-commands/change-description @@ -1,6 +1,7 @@ #!/bin/sh -# Allows users to change project description -# $ ssh git@host change-description repo "description" +# * change-description +# Allows users to change project description +# ssh git@host change-description repo "description" set -e diff --git a/git-shell-commands/create-bare-repo b/git-shell-commands/create-bare-repo index b0174e2..ec98b33 100755 --- a/git-shell-commands/create-bare-repo +++ b/git-shell-commands/create-bare-repo @@ -1,6 +1,7 @@ #!/bin/sh -# Allows users to create repo.git -# $ ssh git@host create-bare-repo repo1 repo2 ... +# * create-bare-repo +# Allows users to create repo.git +# ssh git@host create-bare-repo repo1 repo2 ... set -e diff --git a/git-shell-commands/help b/git-shell-commands/help new file mode 100755 index 0000000..45f0bd6 --- /dev/null +++ b/git-shell-commands/help @@ -0,0 +1,12 @@ +#!/bin/sh +# * help +# Gets available commands +# ssh git@host help + +set -e + +# Gets three lines from every git-shell-command +for c in `dirname $0`/*; do + head -q -n4 $c | tail -n3 | sed "s/^..//" + echo +done diff --git a/git-shell-commands/mirror b/git-shell-commands/mirror index 6a2c254..c634b9e 100755 --- a/git-shell-commands/mirror +++ b/git-shell-commands/mirror @@ -1,6 +1,7 @@ #!/bin/sh -# Mirrors a repository -# ssh git@host mirror git://url/repo.git +# * mirror +# Mirrors a repository +# ssh git@host mirror git://url/repo.git set -E -- 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/mirror') 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