From 17fbcb28b8b28ddd1aac56ad031dbb2ecdcabc94 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Tue, 24 Oct 2006 06:58:44 +0200 Subject: [PATCH] Fix the nofetch repacking --- updatecheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/updatecheck.sh b/updatecheck.sh index 73d6cf2..9f30988 100755 --- a/updatecheck.sh +++ b/updatecheck.sh @@ -10,7 +10,7 @@ cd /srv/git find . -name base_url | cut -c 3- | sed -e 's/\/base_url$//' | while read dir; do if [ -e "$dir"/.nofetch ]; then - [ "$(ls "$dir"/objects/??/* 3>/dev/null)" ] && GIT_DIR="$dir" git repack -a -d + (cd "$dir/objects" && [ "$(ls ?? 2>/dev/null)" ] && GIT_DIR=".." git repack -a -d) else /home/repo/repomgr/update.sh "${dir%.git}" fi -- 2.11.4.GIT