forked from qt-creator/qt-creator
Git: Fix canceling interactive rebase
If the LogChangeDialog is closed without selecting any commit, interactive rebase started with '^' as the commit. Change-Id: I6292c700f61e5d075953ecc371d0916342096801 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -758,9 +758,9 @@ void GitPlugin::startRebase()
|
|||||||
dialog.setWindowTitle(tr("Interactive Rebase"));
|
dialog.setWindowTitle(tr("Interactive Rebase"));
|
||||||
if (!dialog.runDialog(workingDirectory))
|
if (!dialog.runDialog(workingDirectory))
|
||||||
return;
|
return;
|
||||||
const QString change = dialog.commit() + QLatin1Char('^');
|
const QString change = dialog.commit();
|
||||||
if (!change.isEmpty())
|
if (!change.isEmpty())
|
||||||
m_gitClient->interactiveRebase(workingDirectory, change);
|
m_gitClient->interactiveRebase(workingDirectory, change + QLatin1Char('^'));
|
||||||
}
|
}
|
||||||
|
|
||||||
void GitPlugin::startChangeRelatedAction()
|
void GitPlugin::startChangeRelatedAction()
|
||||||
|
|||||||
Reference in New Issue
Block a user