From d02827744a7dd6e9d686c55a084e1306dddcccc6 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 11 Nov 2016 18:00:49 +0300 Subject: [PATCH] Do not pack submodules in bare repos --- gc-and-repack-repos | 4 +++- gc-not-packed-repos | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) 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 -- 2.39.2