Skip to content

Commit 52eed92

Browse files
lynxlynxlynxjef-n
authored andcommitted
revert platform case
1 parent c9d8224 commit 52eed92

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

scripts/prepare-commit.sh

+1-9
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,7 @@ set -e
2020
if [ -d .svn ]; then
2121
MODIFIED=$(svn status | sed -ne "s/^[MA] *//p")
2222
elif [ -d .git ]; then
23-
case $OSTYPE in
24-
darwin*)
25-
MODIFIED=$(git status | sed -Ene "s/^# (modified|new file): *//p" | sort -u)
26-
;;
27-
*)
28-
MODIFIED=$(git status | sed -rne "s/^# (modified|new file): *//p" | sort -u)
29-
;;
30-
esac
31-
23+
MODIFIED=$(git status --porcelain| sed -ne "s/^ *[MA] *//p" | sort -u)
3224
else
3325
echo No working copy
3426
exit 1

0 commit comments

Comments
 (0)