Commit 9b22c8ed authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Eike Ziller
Browse files

Revert "Git: Undo changes on pull with rebase when user chooses not to stash"

The dialog text doesn't state that the changes will be
discarded. This is likely to be an unexpected behavior.

Will improve the dialog on master

This reverts commit cf41cd5e2a9b1927fd533789a30cfd80a4e0791e

Task-number: QTCREATORBUG-7031
Change-Id: I52eaf3cdef1b10b261ee9d2e9e14aa98e6e32bdd
Reviewed-by: default avatarTobias Hunger <>
Reviewed-by: default avatarEike Ziller <>
parent 4d488345
......@@ -976,10 +976,8 @@ void GitPlugin::pull()
GitClient::StashGuard stashGuard(topLevel, QLatin1String("Pull"));
if (stashGuard.stashingFailed(false))
if (stashGuard.stashingFailed(false) || (rebase && (stashGuard.result() == GitClient::NotStashed)))
if (rebase && (stashGuard.result() == GitClient::NotStashed))
if (!m_gitClient->synchronousPull(topLevel, rebase))
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