From 46cd6b50d323fd6c73e5aee460d722e308a82dfb Mon Sep 17 00:00:00 2001 From: Parabola git Date: Fri, 8 Jul 2016 01:49:08 +0000 Subject: remove mirror commands --- git-shell-commands/fetch-mirrors | 13 ------------- git-shell-commands/mirror | 10 ---------- git-shell-commands/mirrors | 9 --------- 3 files changed, 32 deletions(-) delete mode 100755 git-shell-commands/fetch-mirrors delete mode 100755 git-shell-commands/mirror delete mode 100755 git-shell-commands/mirrors (limited to 'git-shell-commands') 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$,,' -- cgit v1.2.3