forked from qt-creator/qt-creator
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:
@@ -621,7 +621,8 @@ bool FossilClient::synchronousCreateRepository(const FilePath &workingDirectory,
|
||||
outputWindow->append(sanitizeFossilOutput(result.cleanedStdOut()));
|
||||
|
||||
// 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)
|
||||
return false;
|
||||
outputWindow->append(sanitizeFossilOutput(result.cleanedStdOut()));
|
||||
|
||||
Reference in New Issue
Block a user