maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject maven git commit: Make sure paths with spaces are treated correctly.
Date Fri, 13 Mar 2015 19:19:40 GMT
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 <jason@tesla.io>
Authored: Fri Mar 13 12:18:24 2015 -0700
Committer: Jason van Zyl <jason@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


Mime
View raw message