Fossil: Use a bit more FilePath{Aspect}

Change-Id: Ie7c995585aafe03428dc5e93b2904b189f0319c0
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
hjk
2023-05-22 14:55:24 +02:00
parent a4c962aa33
commit eebe7f86f3
6 changed files with 18 additions and 30 deletions

View File

@@ -592,7 +592,7 @@ bool FossilClient::synchronousCreateRepository(const FilePath &workingDirectory,
// use the configured default user for admin
const QString repoName = workingDirectory.fileName().simplified();
const QString repoPath = settings().defaultRepoPath.value();
const FilePath repoPath = settings().defaultRepoPath();
const QString adminUser = settings().userName.value();
if (repoName.isEmpty() || repoPath.isEmpty())
@@ -602,8 +602,7 @@ bool FossilClient::synchronousCreateRepository(const FilePath &workingDirectory,
// @TODO: what about --template options?
const FilePath fullRepoName = FilePath::fromStringWithExtension(repoName, Constants::FOSSIL_FILE_SUFFIX);
const FilePath repoFilePath = FilePath::fromString(repoPath)
.pathAppended(fullRepoName.toString());
const FilePath repoFilePath = repoPath.pathAppended(fullRepoName.toString());
QStringList args(vcsCommandString(CreateRepositoryCommand));
if (!adminUser.isEmpty())
args << "--admin-user" << adminUser;