summaryrefslogtreecommitdiff
path: root/git-shell-commands
diff options
context:
space:
mode:
authorParabola git <git@parabola.nu>2016-07-08 01:49:08 +0000
committerParabola git <git@parabola.nu>2016-07-08 01:49:08 +0000
commit46cd6b50d323fd6c73e5aee460d722e308a82dfb (patch)
treea68e3a2be62cbcb208f1e79bfee69704cc51f953 /git-shell-commands
parent692108af078a633a684868a47ba309a666891d4f (diff)
remove mirror commands
Diffstat (limited to 'git-shell-commands')
-rwxr-xr-xgit-shell-commands/fetch-mirrors13
-rwxr-xr-xgit-shell-commands/mirror10
-rwxr-xr-xgit-shell-commands/mirrors9
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$,,'