forked from qt-creator/qt-creator
Docker: use mapped working directory for remote processes
Change-Id: Ibbc89f963ca42510cf072b242a5cdfdc0d4c23ff Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -1576,7 +1576,7 @@ void DockerDevice::runProcess(QtcProcess &process) const
|
||||
|
||||
CommandLine cmd{"docker", {"exec"}};
|
||||
if (!workingDir.isEmpty()) {
|
||||
cmd.addArgs({"-w", workingDir.path()});
|
||||
cmd.addArgs({"-w", mapToDevicePath(workingDir)});
|
||||
if (QTC_GUARD(workingDir.needsDevice())) // warn on local working directory for docker cmd
|
||||
process.setWorkingDirectory(FileUtils::homePath()); // reset working dir for docker exec
|
||||
}
|
||||
|
Reference in New Issue
Block a user