#! /bin/sh
-d="`git rev-parse --show-toplevel`" &&
+d="`pwd`" &&
+cd "`dirname \"$0\"`" &&
+prog_dir="`pwd`" &&
+export prog_dir &&
+cd "$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
+if [ -n "`"$prog_dir"/git-status.sh --short`" ]; then echo "$d"; fi