This is an automated email from the ASF dual-hosted git repository.
slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven.git
The following commit(s) were added to refs/heads/master by this push:
new da5d8b8 [MNG-6850] Prevent printing the EXEC_DIR when it's just a
disk letter
da5d8b8 is described below
commit da5d8b8f51839acfb02b30a9dabd88e5f7359141
Author: Rostislav Krasny <[email protected]>
AuthorDate: Wed Jan 1 01:07:26 2020 +0200
[MNG-6850] Prevent printing the EXEC_DIR when it's just a disk letter
This fixes following bug and also consistent with another 'cd /d
"%EXEC_DIR%"' a few lines above.
When you're on the root of some disk running mvn.cmd prints an extra line
with current dir before the correct output
Closes #304
---
apache-maven/src/bin/mvn.cmd | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/apache-maven/src/bin/mvn.cmd b/apache-maven/src/bin/mvn.cmd
index 693b909..50dafc7 100644
--- a/apache-maven/src/bin/mvn.cmd
+++ b/apache-maven/src/bin/mvn.cmd
@@ -152,7 +152,7 @@ goto endDetectBaseDir
:baseDirNotFound
if "_%EXEC_DIR:~-1%"=="_\" set "EXEC_DIR=%EXEC_DIR:~0,-1%"
set "MAVEN_PROJECTBASEDIR=%EXEC_DIR%"
-cd "%EXEC_DIR%"
+cd /d "%EXEC_DIR%"
:endDetectBaseDir