while true; do
read d || exit 0
if ! test -d "$d"; then continue; fi
test -d "$d"/.git && g="$d"/.git || g="$d"
b="`basename \"$d\" .git`"
eval "$@"
while true; do
read d || exit 0
if ! test -d "$d"; then continue; fi
test -d "$d"/.git && g="$d"/.git || g="$d"
b="`basename \"$d\" .git`"
eval "$@"