From 3c7b53f525f272a01bf80084918955a8a42c76f3 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Wed, 11 Feb 2015 12:05:38 -0800 Subject: [PATCH] gc.sh: also remove stale *.temp files under objects/ --- jobd/gc.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/jobd/gc.sh b/jobd/gc.sh index 47b4071..281afe6 100755 --- a/jobd/gc.sh +++ b/jobd/gc.sh @@ -239,6 +239,13 @@ while read packtmp; do rm -f "$packtmp" done +# Remove any stale *.temp files in the objects area that are more than 12 hours old. +# This can be stale sha1.temp, or stale *.pack.temp so we kill all stale *.temp. +find objects -type f -mmin +720 -name "*.temp" -print | \ +while read objtmp; do + rm -f "$objtmp" +done + # Remove any stale git-svn temp files that are more than 12 hours old. # The git-svn process creates temp files with random 10 character names # in the root of $GIT_DIR. Unfortunately they do not have a recognizable -- 2.11.4.GIT