You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by jv...@apache.org on 2015/03/13 20:19:40 UTC

maven git commit: Make sure paths with spaces are treated correctly.

Repository: maven
Updated Branches:
  refs/heads/master 2f21481d0 -> 0d32cbe6a


Make sure paths with spaces are treated correctly.

Fixes the issue of endlessly looping with project directory paths like "/my/project/this & that"


Project: http://git-wip-us.apache.org/repos/asf/maven/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven/commit/0d32cbe6
Tree: http://git-wip-us.apache.org/repos/asf/maven/tree/0d32cbe6
Diff: http://git-wip-us.apache.org/repos/asf/maven/diff/0d32cbe6

Branch: refs/heads/master
Commit: 0d32cbe6acd30ed7cbf8ee82039aedc4a946d06e
Parents: 2f21481
Author: Jason van Zyl <ja...@tesla.io>
Authored: Fri Mar 13 12:18:24 2015 -0700
Committer: Jason van Zyl <ja...@tesla.io>
Committed: Fri Mar 13 12:18:24 2015 -0700

----------------------------------------------------------------------
 apache-maven/src/bin/mvn | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven/blob/0d32cbe6/apache-maven/src/bin/mvn
----------------------------------------------------------------------
diff --git a/apache-maven/src/bin/mvn b/apache-maven/src/bin/mvn
index d74125e..902de4a 100755
--- a/apache-maven/src/bin/mvn
+++ b/apache-maven/src/bin/mvn
@@ -200,7 +200,7 @@ find_maven_basedir() {
   local basedir=$(pwd)
   local wdir=$(pwd)
   while [ "$wdir" != '/' ] ; do
-    wdir=$(cd $wdir/..; pwd)
+    wdir=$(cd "$wdir/.."; pwd)
     if [ -d "$wdir"/.mvn ] ; then
       basedir=$wdir
       break