From 995fed82502310deda42b7b1bc0713d1ed620c03 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Sun, 11 Aug 2013 03:01:40 -0700 Subject: [PATCH] clone.sh: unset gitweb.lastgc on success In the case of a re-mirror (i.e. the initial mirror failed and it's been restarted), gitweb.lastgc could have been set because a garbage collection was allowed to run. (This will happen if the project is a fork even if the initial mirror failed.) Clear the gitweb.lastgc value upon completion of a successful mirror. --- taskd/clone.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/taskd/clone.sh b/taskd/clone.sh index 00650d6..dbe23fd 100755 --- a/taskd/clone.sh +++ b/taskd/clone.sh @@ -160,5 +160,7 @@ Have a lot of fun. EOT echo "Mirroring finished successfuly!" +# In case this is a re-mirror, lastgc could have been set already so clear it now +git config --unset gitweb.lastgc || : rm .clone_in_progress echo "@OVER@" -- 2.11.4.GIT