From daef1fbb88fd52613f50467acd15b78ca4ed129c Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Tue, 22 Jan 2013 21:02:20 +0200 Subject: Git: Use stash pop instead of apply... ... when the stash should be removed on successful pop Change-Id: I39b2c01b0a518d3c70bcb8dc898191cca6d3e84d Reviewed-by: Tobias Hunger --- src/plugins/git/gitversioncontrol.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/git/gitversioncontrol.cpp') diff --git a/src/plugins/git/gitversioncontrol.cpp b/src/plugins/git/gitversioncontrol.cpp index 013a6c9e1d..752c607ba7 100644 --- a/src/plugins/git/gitversioncontrol.cpp +++ b/src/plugins/git/gitversioncontrol.cpp @@ -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; -- cgit v1.2.1