forked from qt-creator/qt-creator
Git: Fix calls to ensureStash
Change-Id: I581afbe314055796d22f883e501dfb5fd17117fe Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
committed by
Tobias Hunger
parent
4e5e6b45fe
commit
e463c56c32
@@ -444,7 +444,7 @@ void BranchModel::checkoutBranch(const QModelIndex &idx)
|
||||
return;
|
||||
|
||||
QString errorMessage;
|
||||
switch (m_client->ensureStash(m_workingDirectory, QLatin1String("Branch-Checkout"), 0, &errorMessage)) {
|
||||
switch (m_client->ensureStash(m_workingDirectory, QLatin1String("Branch-Checkout"), true, 0, &errorMessage)) {
|
||||
case GitClient::StashUnchanged:
|
||||
case GitClient::Stashed:
|
||||
case GitClient::NotStashed:
|
||||
|
||||
@@ -1571,7 +1571,7 @@ static inline int askWithDetailedText(QWidget *parent,
|
||||
GitClient::StashResult GitClient::ensureStash(const QString &workingDirectory, const QString &keyword, QString *message)
|
||||
{
|
||||
QString errorMessage;
|
||||
const StashResult sr = ensureStash(workingDirectory, keyword, message, &errorMessage);
|
||||
const StashResult sr = ensureStash(workingDirectory, keyword, true, message, &errorMessage);
|
||||
if (sr == StashFailed)
|
||||
outputWindow()->appendError(errorMessage);
|
||||
return sr;
|
||||
|
||||
Reference in New Issue
Block a user