From 5ce70d78ec131c501d2dcc0732cda2def2d95977 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 7 Jul 2015 17:32:41 +0300 Subject: [PATCH] New algorithm to find non-packed repos Consider repos with files in refs and rerere cache not packed. --- ls-not-packed | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ls-not-packed b/ls-not-packed index d2bb878..a674f59 100755 --- a/ls-not-packed +++ b/ls-not-packed @@ -1,4 +1,6 @@ #! /bin/sh exec "`dirname \"$0\"`"/do-all \ - 'test "`ls -1 \"$g\"/objects 2>/dev/null | wc -l`" -gt 2 && echo "$d"' + 'test \ + "`find \"$g\"/objects/ \"$g\"/refs/ \"$g\"/rr-cache/ \ + ! -name HEAD -type f 2>/dev/null | wc -l`" -gt 3 && echo "$d"' -- 2.39.5