Fossil: Force open a repository by default

Fixes: QTCREATORBUG-28762
Change-Id: Iac45e940eb32cdb68eb2e745c5e63d3cc48ac943
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Christian Stenger
2023-02-10 09:14:23 +01:00
parent 8491441257
commit 3d57b1868b

View File

@@ -621,7 +621,8 @@ bool FossilClient::synchronousCreateRepository(const FilePath &workingDirectory,
outputWindow->append(sanitizeFossilOutput(result.cleanedStdOut())); outputWindow->append(sanitizeFossilOutput(result.cleanedStdOut()));
// check out the created repository file into the working directory // check out the created repository file into the working directory
result = vcsSynchronousExec(workingDirectory, {"open", repoFilePath.toUserOutput()}); // --force as it may be not empty e.g. when creating a project from wizard
result = vcsSynchronousExec(workingDirectory, {"open", "--force", repoFilePath.toUserOutput()});
if (result.result() != ProcessResult::FinishedWithSuccess) if (result.result() != ProcessResult::FinishedWithSuccess)
return false; return false;
outputWindow->append(sanitizeFossilOutput(result.cleanedStdOut())); outputWindow->append(sanitizeFossilOutput(result.cleanedStdOut()));