summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-09-28 14:41:05 +0200
committerErich Eckner <git@eckner.net>2018-09-28 14:41:05 +0200
commit2a762bcfac22eb6fd0b75dd4b9430c9a4516136a (patch)
treebd9d98c075e1fc1bc93b64a43453dedbdd0c457f
parentd8c2620c80ae37a33e42eeb3ac292915d10108ee (diff)
downloadarchive-server-2a762bcfac22eb6fd0b75dd4b9430c9a4516136a.tar.xz
update-repos new
-rwxr-xr-xupdate-repos9
1 files changed, 9 insertions, 0 deletions
diff --git a/update-repos b/update-repos
new file mode 100755
index 0000000..bfd3ec6
--- /dev/null
+++ b/update-repos
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+base_dir=$(dirname "$(readlink -f "$0")")
+
+find "${base_dir}/work/repositories" \
+ -mindepth 1 \
+ -maxdepth 1 \
+ -type d \
+ -exec git -C {} remote update \;