aboutsummaryrefslogtreecommitdiff
path: root/mirrors/check-git-mirrors.sh
diff options
context:
space:
mode:
Diffstat (limited to 'mirrors/check-git-mirrors.sh')
-rwxr-xr-xmirrors/check-git-mirrors.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/mirrors/check-git-mirrors.sh b/mirrors/check-git-mirrors.sh
new file mode 100755
index 0000000..99ce432
--- /dev/null
+++ b/mirrors/check-git-mirrors.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+#
+# This is a simple script to check consistency of the number of
+# git mirror repositories. As provided, it checks the master LLVM
+# git repo with few its mirrors, and can be easily adapted for
+#
+#
+
+branch="master"
+repos="\
+ http://llvm.org/git/llvm.git \
+ https://git-us.linaro.org/toolchain/llvm/llvm.git \
+ https://git.linaro.org/toolchain/llvm/llvm.git \
+ https://github.com/llvm-mirror/llvm \
+"
+
+TZ=UTC date "+%Y%m%dT%H:%M:%SZ"
+
+for repo in $repos; do
+ echo $repo
+ git ls-remote $repo $branch
+done