forked from qt-creator/qt-creator
Git: Use stash pop instead of apply...
... when the stash should be removed on successful pop Change-Id: I39b2c01b0a518d3c70bcb8dc898191cca6d3e84d Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
53443616e5
commit
daef1fbb88
@@ -218,7 +218,7 @@ bool GitVersionControl::vcsRestoreSnapshot(const QString &topLevel, const QStrin
|
||||
QString stashName;
|
||||
success = m_client->stashNameFromMessage(topLevel, name, &stashName)
|
||||
&& m_client->synchronousReset(topLevel)
|
||||
&& m_client->synchronousStashRestore(topLevel, stashName);
|
||||
&& m_client->synchronousStashRestore(topLevel, stashName, true);
|
||||
}
|
||||
} while (false);
|
||||
return success;
|
||||
|
||||
Reference in New Issue
Block a user