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/09/12 01:32:19 UTC
maven git commit: MNG-5858: mvn script fails to locate .mvn in
current directory
Repository: maven
Updated Branches:
refs/heads/master a839e55e7 -> 1a8413bef
MNG-5858: mvn script fails to locate .mvn in current directory
Submitted by: Dave Syer
closes #58
Project: http://git-wip-us.apache.org/repos/asf/maven/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven/commit/1a8413be
Tree: http://git-wip-us.apache.org/repos/asf/maven/tree/1a8413be
Diff: http://git-wip-us.apache.org/repos/asf/maven/diff/1a8413be
Branch: refs/heads/master
Commit: 1a8413bef94bd44fec6f5c6373f64c705e890908
Parents: a839e55
Author: Jason van Zyl <ja...@tesla.io>
Authored: Fri Sep 11 19:15:12 2015 -0400
Committer: Jason van Zyl <ja...@tesla.io>
Committed: Fri Sep 11 19:15:12 2015 -0400
----------------------------------------------------------------------
apache-maven/src/bin/mvn | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/maven/blob/1a8413be/apache-maven/src/bin/mvn
----------------------------------------------------------------------
diff --git a/apache-maven/src/bin/mvn b/apache-maven/src/bin/mvn
index 080db3e..e340a11 100755
--- a/apache-maven/src/bin/mvn
+++ b/apache-maven/src/bin/mvn
@@ -200,11 +200,11 @@ find_maven_basedir() {
local basedir="$(pwd)"
local wdir="$(pwd)"
while [ "$wdir" != '/' ] ; do
- wdir="$(cd "$wdir/.."; pwd)"
if [ -d "$wdir"/.mvn ] ; then
basedir=$wdir
break
fi
+ wdir="$(cd "$wdir/.."; pwd)"
done
echo "${basedir}"
}