From 42a36d0938727cc94d085a898f3ac85207dde2d3 Mon Sep 17 00:00:00 2001
From: Joel Grunbaum <joelgrun@gmail.com>
Date: Tue, 27 Jul 2021 23:48:36 +0000
Subject: [PATCH] Merge branch 'master' of github.com:Chizi123/Scripts

---
 git-mirror-update.sh |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/git-mirror-update.sh b/git-mirror-update.sh
new file mode 100755
index 0000000..3ba4b7e
--- /dev/null
+++ b/git-mirror-update.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+GIT_DIRECTORY=/Eduardo/git
+
+for d in $GIT_DIRECTORY/*; do
+    if grep -q "mirror = true" $d/config; then
+	git -C "$d" remote update --prune
+    fi
+done

--
Gitblit v1.9.3