forked from qt-creator/qt-creator
Git: pull --rebase when appropriate
Task-number: QTCREATORBUG-8732 Change-Id: I510ac93b118e93cba591c4717cb6779d64869be1 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
0e86785019
commit
6f0294b03d
@@ -949,7 +949,7 @@ void GitPlugin::pull()
|
|||||||
GitClient::StashGuard stashGuard(state.topLevel(), QLatin1String("Pull"));
|
GitClient::StashGuard stashGuard(state.topLevel(), QLatin1String("Pull"));
|
||||||
if (stashGuard.stashingFailed(false) || (rebase && (stashGuard.result() == GitClient::NotStashed)))
|
if (stashGuard.stashingFailed(false) || (rebase && (stashGuard.result() == GitClient::NotStashed)))
|
||||||
return;
|
return;
|
||||||
if (!m_gitClient->synchronousPull(state.topLevel(), false))
|
if (!m_gitClient->synchronousPull(state.topLevel(), rebase))
|
||||||
stashGuard.preventPop();
|
stashGuard.preventPop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user