From: Oleg Broytman Date: Fri, 11 Nov 2016 15:00:49 +0000 (+0300) Subject: Do not pack submodules in bare repos X-Git-Url: https://git.phdru.name/?p=git-scripts.git;a=commitdiff_plain;h=d02827744a7dd6e9d686c55a084e1306dddcccc6 Do not pack submodules in bare repos --- diff --git a/gc-and-repack-repos b/gc-and-repack-repos index 2f6d731..c9f0bc1 100755 --- a/gc-and-repack-repos +++ b/gc-and-repack-repos @@ -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 diff --git a/gc-not-packed-repos b/gc-not-packed-repos index f7b7c78..4d25409 100755 --- a/gc-not-packed-repos +++ b/gc-not-packed-repos @@ -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