From 9115355bc1a8d6cb6b23a87e6b2987712ae90156 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Mon, 17 Jun 2013 12:54:38 -0700 Subject: [PATCH] gc.sh: fix test for forks to work inside forks themselves --- jobd/gc.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jobd/gc.sh b/jobd/gc.sh index 4f29f0d..76f54ef 100755 --- a/jobd/gc.sh +++ b/jobd/gc.sh @@ -21,11 +21,11 @@ if [ -e .nogc ]; then fi progress "+ [$proj] garbage check (`date`)" -# safe pruning: we put all our objects to all forks, then we can +# safe pruning: we put all our objects in all forks, then we can # safely get rid of extra ones; repacks in forks will get rid of # the redundant ones again then forkdir="$1" -if [ -d "../$forkdir" ]; then +if [ -d "../${forkdir##*/}" ]; then get_repo_list "$forkdir/" | while read fork; do # Match objects in parent project -- 2.11.4.GIT