Skip to content
Permalink
Browse files

revert platform case

  • Loading branch information
lynxlynxlynx authored and jef-n committed Jul 29, 2012
1 parent c9d8224 commit 52eed922cbf75c84b9150636c87fdd9e30e189a8
Showing with 1 addition and 9 deletions.
  1. +1 −9 scripts/prepare-commit.sh
@@ -20,15 +20,7 @@ set -e
if [ -d .svn ]; then
MODIFIED=$(svn status | sed -ne "s/^[MA] *//p")
elif [ -d .git ]; then
case $OSTYPE in
darwin*)
MODIFIED=$(git status | sed -Ene "s/^# (modified|new file): *//p" | sort -u)
;;
*)
MODIFIED=$(git status | sed -rne "s/^# (modified|new file): *//p" | sort -u)
;;
esac

MODIFIED=$(git status --porcelain| sed -ne "s/^ *[MA] *//p" | sort -u)
else
echo No working copy
exit 1

0 comments on commit 52eed92

Please sign in to comment.
You can’t perform that action at this time.