]> git.phdru.name Git - git-scripts.git/blobdiff - gc-not-packed-repos
Do not pack submodules in bare repos
[git-scripts.git] / gc-not-packed-repos
index f7b7c78ab08944f88efd924231f75500bf3cf6f5..4d254090ee63606e340a0db5c622026502533b9c 100755 (executable)
@@ -6,5 +6,7 @@ prog_dir="`pwd`" &&
 for d in `"$prog_dir"/ls-not-packed`
 do
    echo "----- $d -----" && cd "$d" &&
-   "$prog_dir"/gc-not-packed-recursive || exit 1
+   test "$g" = "$d/.git" &&
+   "$prog_dir"/gc-not-packed-recursive ||
+   "$prog_dir"/gc-not-packed
 done