CVS: Fix log for project and repository

When the parameter file is empty, the string list
passed to runCvs() contained `log ''` which fails.
What we really want to run here is simply `log`.

Change-Id: I1e76809a37d1fd6247cddc8040fb76ddf72936d2
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Andre Hartmann
2025-02-12 20:56:38 +01:00
committed by André Hartmann
parent 88bea338b1
commit ccb4619238

View File

@@ -944,7 +944,10 @@ void CvsPluginPrivate::filelog(const FilePath &workingDir,
// no need for temp file
const QString id = VcsBaseEditor::getTitleId(workingDir, QStringList(file));
const FilePath source = VcsBaseEditor::getSource(workingDir, file);
const auto response = runCvs(workingDir, {"log", file}, RunFlags::None, codec);
QStringList args = {"log"};
if (!file.isEmpty())
args.append(file);
const auto response = runCvs(workingDir, args, RunFlags::None, codec);
if (response.result() != ProcessResult::FinishedWithSuccess)
return;