]> git.phdru.name Git - git-scripts.git/blobdiff - gc-and-repack-recursive
Run git gc/repack/fsck recursively (on submodules)
[git-scripts.git] / gc-and-repack-recursive
diff --git a/gc-and-repack-recursive b/gc-and-repack-recursive
new file mode 100755 (executable)
index 0000000..8106725
--- /dev/null
@@ -0,0 +1,6 @@
+#! /bin/sh
+
+prog_dir="`dirname \"$0\"`" &&
+
+"$prog_dir"/gc-and-repack && \
+exec git submodule foreach "$prog_dir"/gc-and-repack