Git: pull --rebase when appropriate

Task-number: QTCREATORBUG-8732

Change-Id: I510ac93b118e93cba591c4717cb6779d64869be1
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Tobias Hunger
2013-02-14 14:10:25 +01:00
committed by Orgad Shaneh
parent 0e86785019
commit 6f0294b03d

View File

@@ -949,7 +949,7 @@ void GitPlugin::pull()
GitClient::StashGuard stashGuard(state.topLevel(), QLatin1String("Pull"));
if (stashGuard.stashingFailed(false) || (rebase && (stashGuard.result() == GitClient::NotStashed)))
return;
if (!m_gitClient->synchronousPull(state.topLevel(), false))
if (!m_gitClient->synchronousPull(state.topLevel(), rebase))
stashGuard.preventPop();
}