]> git.phdru.name Git - git-scripts.git/blobdiff - gc-not-packed
Feat(submodules/remove): Add option `-c`
[git-scripts.git] / gc-not-packed
index c9f7be2537b008c7d6164abfde0a0535e5327866..2f6073c7477a7f9acf62bf5ef8ea70102153c2ec 100755 (executable)
@@ -1,8 +1,4 @@
 #! /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
+git gc --aggressive &&
+exec git fsck --strict