]> git.phdru.name Git - git-scripts.git/commitdiff
Do not pack submodules in bare repos
authorOleg Broytman <phd@phdru.name>
Fri, 11 Nov 2016 15:00:49 +0000 (18:00 +0300)
committerOleg Broytman <phd@phdru.name>
Fri, 11 Nov 2016 15:00:49 +0000 (18:00 +0300)
gc-and-repack-repos
gc-not-packed-repos

index 2f6d7312d5008e0cfdf99f5bff1bc107125e5334..c9f0bc1bf2ceb2be0bb67d119cedb755bb6b0a6d 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-and-repack-recursive || exit 1
+   test "$g" = "$d/.git" &&
+   "$prog_dir"/gc-and-repack-recursive ||
+   "$prog_dir"/gc-and-repack
 done
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