From eaea9cc6db657d978828431b3e5e555d6a20f8ff Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Fri, 13 Feb 2015 04:00:35 -0800 Subject: [PATCH] gc.sh: do not use pack_is_complete unless Git >= 1.7.2 --- jobd/gc.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jobd/gc.sh b/jobd/gc.sh index 4a7e9f2..3b239c7 100755 --- a/jobd/gc.sh +++ b/jobd/gc.sh @@ -382,7 +382,8 @@ fi # Create a matching .bndl header file for the all-in-one pack we just created # but only if we're not a fork (otherwise the bundle would not be complete) -if [ ! -s objects/info/alternates ]; then +# and we are running at least Git version 1.7.2 (pack_is_complete always fails otherwise) +if [ ! -s objects/info/alternates ] && [ -n "$var_have_git_172" ]; then # There should only be one pack in $allpacks but if there was a # simultaneous push... # The one we just created will have a .idx and will NOT have a .keep -- 2.11.4.GIT