diff options
author | Parabola git <git@parabola.nu> | 2016-07-08 01:49:08 +0000 |
---|---|---|
committer | Parabola git <git@parabola.nu> | 2016-07-08 01:49:08 +0000 |
commit | 46cd6b50d323fd6c73e5aee460d722e308a82dfb (patch) | |
tree | a68e3a2be62cbcb208f1e79bfee69704cc51f953 /git-shell-commands | |
parent | 692108af078a633a684868a47ba309a666891d4f (diff) |
remove mirror commands
Diffstat (limited to 'git-shell-commands')
-rwxr-xr-x | git-shell-commands/fetch-mirrors | 13 | ||||
-rwxr-xr-x | git-shell-commands/mirror | 10 | ||||
-rwxr-xr-x | git-shell-commands/mirrors | 9 |
3 files changed, 0 insertions, 32 deletions
diff --git a/git-shell-commands/fetch-mirrors b/git-shell-commands/fetch-mirrors deleted file mode 100755 index 6b7672d..0000000 --- a/git-shell-commands/fetch-mirrors +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh -# * fetch-mirrors -# Update the created `mirrors` with `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 diff --git a/git-shell-commands/mirror b/git-shell-commands/mirror deleted file mode 100755 index 8d7a648..0000000 --- a/git-shell-commands/mirror +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh -# * mirror -# Mirror the repository -# ssh git@host mirror git://url/repo.git - -set -E - -for _m in "$@"; do - git clone --mirror "$_m" -done diff --git a/git-shell-commands/mirrors b/git-shell-commands/mirrors deleted file mode 100755 index 800fba8..0000000 --- a/git-shell-commands/mirrors +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh -# * mirrors -# Show all mirrors repositories -# ssh git@host mirrors - -set -e - -# Find all mirrors -find $(find * -name '*.git' -type d) -maxdepth 1 -name config -exec grep -l 'mirror\s*=\s*true' {} + | sed 's,/config$,,' |