#! /bin/sh
-cd "`dirname \"$0\"`" &&
-prog_dir="`pwd`" &&
-export prog_dir
+d="`git rev-parse --show-toplevel`" &&
-exec "$prog_dir"/do-all \
- 'test "$g" = "$d/.git" || continue; cd "$d" &&' \
- 'test -n "`"$prog_dir"/git-status.sh --short`" && echo "$d"'
+if [ -n "$d" ]; then
+ cd "`dirname \"$0\"`" &&
+ prog_dir="`pwd`" &&
+ export prog_dir &&
+ cd "$d" &&
+
+ if [ -n "`"$prog_dir"/git-status.sh --short`" ]; then echo "$d"; fi
+fi