summaryrefslogtreecommitdiff
path: root/plugins/svn
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2014-10-09 13:55:50 +0200
committerMarc Cornellà <marc.cornella@live.com>2014-11-06 18:33:56 +0100
commit4310a15de5d0587ef135f9e12857620c4788dec2 (patch)
tree2b90a55294191a4c3f4d7b5c037476f6f2470796 /plugins/svn
parent74177c5320b2a1b2f8c4c695c05984b57fd7c6ea (diff)
downloadzsh-4310a15de5d0587ef135f9e12857620c4788dec2.tar.gz
zsh-4310a15de5d0587ef135f9e12857620c4788dec2.tar.bz2
zsh-4310a15de5d0587ef135f9e12857620c4788dec2.zip
Change all pwd calls for $PWD variable
This avoids spawning additional processes as $PWD **always** contains the current working directory.
Diffstat (limited to 'plugins/svn')
-rw-r--r--plugins/svn/svn.plugin.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/svn/svn.plugin.zsh b/plugins/svn/svn.plugin.zsh
index ef6da5bd3..ba281d790 100644
--- a/plugins/svn/svn.plugin.zsh
+++ b/plugins/svn/svn.plugin.zsh
@@ -77,7 +77,7 @@ function svn_dirty() {
function svn_dirty_choose_pwd () {
if in_svn; then
- root=`pwd`
+ root=$PWD
if $(svn status $root 2> /dev/null | grep -Eq '^\s*[ACDIM!?L]'); then
# Grep exits with 0 when "One or more lines were selected", return "dirty".
echo $1