aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Sokolovsky <paul.sokolovsky@linaro.org>2016-05-25 19:23:26 +0300
committerPaul Sokolovsky <paul.sokolovsky@linaro.org>2016-05-25 19:23:26 +0300
commitc0bc966c37517e056700ebc735d500f10e03f0c5 (patch)
tree45c906b27af7c7a5834d8af5837c130a4107cf5d
parenta8d64983280197f49b2961f09093925bf253ffa9 (diff)
downloadlinaro-git-tools-c0bc966c37517e056700ebc735d500f10e03f0c5.tar.gz
mirrors/check-git-mirrors.sh: Simple script to check git mirror consistency.
Indended to serve as an aid with issue reporting when mirrors get out of sync or aren't updated as expected. Prompted by https://servicedesk.linaro.org/browse/SYS-38. Change-Id: Ie5219fd86f2297998631336a1a5d6d87dd35fe80
-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