From c8488000495fbab9c695704bc6b61c9c3fa754f0 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Mon, 29 Jun 2020 22:09:25 -0700 Subject: [PATCH] toolbox/make-all-gc-eligible.sh: remove girocco.gcsig section Instead of removing the gitweb.lastreceive setting, remove the entire girocco.gcsig section to make a project eligible for gc. With the addition of the gc "signature" hashes to determine whether or not gc may be skipped (because there's nothing to do), if any of the previous values for the signature hashes are missing, gc will never be skipped. By removing the girocco.gcsig section instead of the gitweb.lastreceive section, the value of the lastreceive timestamp is preserved while still forcing gc to take place at the next scheduled gc interval. Signed-off-by: Kyle J. McKay --- toolbox/make-all-gc-eligible.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/toolbox/make-all-gc-eligible.sh b/toolbox/make-all-gc-eligible.sh index 7fafe1c..eb7ca8f 100755 --- a/toolbox/make-all-gc-eligible.sh +++ b/toolbox/make-all-gc-eligible.sh @@ -1,7 +1,7 @@ #!/bin/sh -# Unset gitweb.lastreceive in all projects so that the next time -# each project reaches its gc interval it will run gc +# Remove the entire girocco.gcsig section in all projects so that the +# next time each project reaches its gc interval it will run gc set -e @@ -15,7 +15,7 @@ cut -d : -f 1 <"$cfg_chroot/etc/group" | grep -v "^_repo" | count=0 while read proj; do projdir="$base/$proj.git" - if git --git-dir="$projdir" config --unset gitweb.lastreceive 2>/dev/null; then + if git --git-dir="$projdir" config --remove-section girocco.gcsig 2>/dev/null; then count=$(( $count + 1 )) if [ $(( $count % 10 )) = 0 ]; then printf '%s ' $count -- 2.11.4.GIT