Commit f3220dd4 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Vcs: Delete commit message file after commit

Change-Id: I5786fb49d99c793319d28d5a14460f962f416ab5
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <>
parent 6fe3eec5
......@@ -514,10 +514,12 @@ void VcsBaseClient::commit(const QString &repositoryRoot,
// So descendants of VcsBaseClient *must* redefine commit() and extend
// extraOptions with the usage for commitMessageFile (see BazaarClient::commit()
// for example)
QStringList args(vcsCommandString(CommitCommand));
args << extraOptions << files;
enqueueJob(createCommand(repositoryRoot, 0, VcsWindowOutputBind), args);
VcsCommand *cmd = createCommand(repositoryRoot, 0, VcsWindowOutputBind);
if (!commitMessageFile.isEmpty())
connect(cmd, &VcsCommand::finished, [commitMessageFile]() { QFile(commitMessageFile).remove(); });
enqueueJob(cmd, args);
VcsBaseClientSettings *VcsBaseClient::settings() const
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment