summaryrefslogtreecommitdiff
path: root/plugins/svn
diff options
context:
space:
mode:
authorzghember <zghpku@gmail.com>2015-01-03 14:41:34 +0800
committerzghember <zghpku@gmail.com>2015-01-03 14:41:34 +0800
commit8105d4acc960229e8c7fa9dc6936d8ce881c6b8d (patch)
tree3c3ead3f01aa7cfc645155a3c992f046ec328155 /plugins/svn
parent6fd0b73e9aba568640005798f737cd73ad0bfdf4 (diff)
parent175b4a807383530aa75145b5b6fdedb3ce1f11f2 (diff)
downloadzsh-8105d4acc960229e8c7fa9dc6936d8ce881c6b8d.tar.gz
zsh-8105d4acc960229e8c7fa9dc6936d8ce881c6b8d.tar.bz2
zsh-8105d4acc960229e8c7fa9dc6936d8ce881c6b8d.zip
Merge commit '175b4a807383530aa75145b5b6fdedb3ce1f11f2'
Diffstat (limited to 'plugins/svn')
-rw-r--r--plugins/svn/svn.plugin.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/svn/svn.plugin.zsh b/plugins/svn/svn.plugin.zsh
index ba281d790..9f7a4c6eb 100644
--- a/plugins/svn/svn.plugin.zsh
+++ b/plugins/svn/svn.plugin.zsh
@@ -61,7 +61,7 @@ function svn_get_rev_nr() {
function svn_dirty_choose() {
if in_svn; then
root=`svn info 2> /dev/null | sed -n 's/^Working Copy Root Path: //p'`
- if $(svn status $root 2> /dev/null | grep -Eq '^\s*[ACDIM!?L]'); then
+ if $(svn status $root 2> /dev/null | command grep -Eq '^\s*[ACDIM!?L]'); then
# Grep exits with 0 when "One or more lines were selected", return "dirty".
echo $1
else
@@ -78,7 +78,7 @@ function svn_dirty() {
function svn_dirty_choose_pwd () {
if in_svn; then
root=$PWD
- if $(svn status $root 2> /dev/null | grep -Eq '^\s*[ACDIM!?L]'); then
+ if $(svn status $root 2> /dev/null | command grep -Eq '^\s*[ACDIM!?L]'); then
# Grep exits with 0 when "One or more lines were selected", return "dirty".
echo $1
else