]> git.phdru.name Git - git-scripts.git/blobdiff - gc-not-packed
Do something on all located git repositories
[git-scripts.git] / gc-not-packed
diff --git a/gc-not-packed b/gc-not-packed
new file mode 100755 (executable)
index 0000000..c9f7be2
--- /dev/null
@@ -0,0 +1,8 @@
+#! /bin/sh
+
+prog_dir=`dirname "$0"`
+for d in `"$prog_dir"/ls-not-packed`
+do
+   echo "----- $d -----" && cd "$d" &&
+   git gc --aggressive && git fsck --strict || exit 1
+done