diff --git a/src/plugins/remotelinux/rsyncdeploystep.cpp b/src/plugins/remotelinux/rsyncdeploystep.cpp index 76efc5b03e..82f97f2e42 100644 --- a/src/plugins/remotelinux/rsyncdeploystep.cpp +++ b/src/plugins/remotelinux/rsyncdeploystep.cpp @@ -159,9 +159,12 @@ void RsyncDeployService::deployNextFile() } const DeployableFile file = m_deployableFiles.takeFirst(); const RsyncCommandLine cmdLine = RsyncDeployStep::rsyncCommand(*connection(), m_flags); + QString lf = file.localFilePath().toString(); + lf = '/' + lf.at(0) + lf.mid(2); const QStringList args = QStringList(cmdLine.options) - << (file.localFilePath().toString() + (file.localFilePath().isDir() ? "/" : QString())) + << (lf + (file.localFilePath().isDir() ? "/" : QString())) << (cmdLine.remoteHostSpec + ':' + file.remoteFilePath()); + qDebug() << args; m_rsync.start("rsync", args); // TODO: Get rsync location from settings? }