forked from qt-creator/qt-creator
Git: Do not pop stash if a command is in progress
Running interactive rebase and choosing edit for a commit causes stash pop when the commit is expected to be edited Change-Id: I37249e8486b609dedba143bd130059444f882303 Reviewed-by: Petar Perisin <petar.perisin@gmail.com> Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
d96535bd23
commit
92392454b7
@@ -648,12 +648,13 @@ public:
|
||||
|
||||
~ConflictHandler()
|
||||
{
|
||||
GitClient *client = GitPlugin::instance()->gitClient();
|
||||
if (m_commit.isEmpty()) {
|
||||
GitPlugin::instance()->gitVersionControl()->emitRepositoryChanged(m_workingDirectory);
|
||||
GitPlugin::instance()->gitClient()->endStashScope(m_workingDirectory);
|
||||
if (client->checkCommandInProgress(m_workingDirectory) != GitClient::NoCommand)
|
||||
client->endStashScope(m_workingDirectory);
|
||||
} else {
|
||||
GitPlugin::instance()->gitClient()->handleMergeConflicts(
|
||||
m_workingDirectory, m_commit, m_command);
|
||||
client->handleMergeConflicts(m_workingDirectory, m_commit, m_command);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user