#! /bin/sh
-COUNT_OBJ_PRG="git count-objects -v | grep ^count: | cut -c 8-"
-export COUNT_OBJ_PRG
-
-exec "`dirname \"$0\"`"/do-all \
- 'cd "$d" && count_obj=`eval $COUNT_OBJ_PRG`; ' \
- 'if [ "$d" != "$g" ]; then' \
- 'for c in `eval git submodule foreach $COUNT_OBJ_PRG`;' \
- 'do count_obj=`expr $count_obj + $c`; done; ' \
- 'fi; ' \
- 'test $count_obj -gt 1 && echo "$d"' \
+count_obj=`git count-objects -v | grep ^count: | cut -c 8-`
+echo $count_obj
--- /dev/null
+#! /bin/sh
+
+prog_dir="`dirname \"$0\"`" &&
+count_obj=0
+for repo_count_obj in `"$prog_dir"/run-recursive "$prog_dir"/ls-not-packed`; do
+ count_obj=`expr $count_obj + $repo_count_obj`
+done
+if [ $count_obj -ge 1 ]; then pwd; fi