From 1314ce75a9342692bb9862998b0b865870d4413e Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Sat, 12 Sep 2020 23:48:22 -0700 Subject: [PATCH] gc.sh: remove any stale incoming-?* top-level directories Prepare for future fetch quarantine directories by removing any stale 'incoming-?*' directories that appear at the top-level of the git directory in addition to those that appear inside the 'objects' subdirectory. Signed-off-by: Kyle J. McKay --- jobd/gc.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jobd/gc.sh b/jobd/gc.sh index 77c5118..f6a1a4e 100755 --- a/jobd/gc.sh +++ b/jobd/gc.sh @@ -555,7 +555,8 @@ remove_crud() { # Remove any stale incoming-* object quarantine directories that are # more than 12 hours old. These are new with Git >= 2.11.0. - find -L objects -maxdepth 1 -type d -name 'incoming-?*' -mmin +720 \ + # The update script uses its own incoming-* quarantine directories as well. + find -L . objects -maxdepth 1 -type d -name 'incoming-?*' -mmin +720 \ -exec rm -rf '{}' + || : # Remove any stale shallow_* files that are more than 12 hours old. -- 2.11.4.GIT