[Swift-commit] r4170 - branches/release-0.92/libexec
noreply at svn.ci.uchicago.edu
noreply at svn.ci.uchicago.edu
Sun Mar 6 15:04:28 CST 2011
Author: hategan
Date: 2011-03-06 15:04:28 -0600 (Sun, 06 Mar 2011)
New Revision: 4170
Modified:
branches/release-0.92/libexec/svn-revision
Log:
fixed revision when using git, thanks to Allan
Modified: branches/release-0.92/libexec/svn-revision
===================================================================
--- branches/release-0.92/libexec/svn-revision 2011-03-06 15:34:07 UTC (rev 4169)
+++ branches/release-0.92/libexec/svn-revision 2011-03-06 21:04:28 UTC (rev 4170)
@@ -6,7 +6,7 @@
M=$(svn status | grep --invert-match '^\?' > /dev/null && echo "($1 modified locally)")
elif [ -d ".git" ] && [ -x "$(which git)" ]; then
R=$(git svn info | grep '^Revision' | sed "s/Revision: /$1-r/")
- if git status -a >/dev/null ; then
+ if git status --porcelain | grep 'M ' >/dev/null ; then
M="($1 modified locally)"
fi
else
More information about the Swift-commit
mailing list