forked from qt-creator/qt-creator
Git: Pop stored stash after checkout
Change-Id: I41eda91149c0152fd0b9f3d2c0294120153377b5 Reviewed-by: Petar Perisin <petar.perisin@gmail.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
fc85a4766d
commit
5eff132253
@@ -900,9 +900,7 @@ void GitPlugin::startChangeRelatedAction()
|
||||
m_gitClient->synchronousRevert(workingDirectory, change);
|
||||
break;
|
||||
case Checkout:
|
||||
if (!m_gitClient->beginStashScope(workingDirectory, QLatin1String("Checkout")))
|
||||
return;
|
||||
m_gitClient->synchronousCheckout(workingDirectory, change);
|
||||
m_gitClient->stashAndCheckout(workingDirectory, QLatin1String("Checkout"));
|
||||
break;
|
||||
default:
|
||||
return;
|
||||
|
Reference in New Issue
Block a user