#! /bin/sh
-exec "`dirname \"$0\"`"/do-all \
- 'test "$g" = "$d/.git" || continue; cd "$d" &&' \
- 'test -n "`git ls-files --deleted --modified --others --unmerged --killed --exclude-standard --directory --no-empty-directory`" && echo "$d"'
+d="`git rev-parse --show-toplevel`" &&
+
+if [ -n "$d" ]; then
+ if [ -n "`git ls-files --deleted --modified --others --unmerged --killed --exclude-standard --directory --no-empty-directory`" ]
+ then
+ echo "$d"
+ fi
+fi