summaryrefslogtreecommitdiff
path: root/unclean.d/50test
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2012-03-05 10:41:42 -0400
committerJoey Hess <joey@kitenet.net>2012-03-05 10:41:42 -0400
commitaeb50b5972ab2f21cc008509f392bf15f5ccffd9 (patch)
treee0406e23f6b40b902396762b3d7721a88376a74c /unclean.d/50test
parent50c2c955fbd46a8aa2bf9397e73094b0a64d8f45 (diff)
Autocommit git staged files. Closes: #662614
Diffstat (limited to 'unclean.d/50test')
-rwxr-xr-xunclean.d/50test2
1 files changed, 1 insertions, 1 deletions
diff --git a/unclean.d/50test b/unclean.d/50test
index 84e6be7..173d6e2 100755
--- a/unclean.d/50test
+++ b/unclean.d/50test
@@ -2,7 +2,7 @@
set -e
if [ "$VCS" = git ]; then
- [ -d .git ] && [ -n "`git ls-files --modified --deleted --others --exclude-standard`" ]
+ [ -d .git ] && [ -n "`git status --porcelain`" ]
elif [ "$VCS" = hg ]; then
[ -d .hg ] && ! hg status 2>&1 | wc -l | grep -q "^0$"
elif [ "$VCS" = bzr ]; then