Commit e463c56c authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Tobias Hunger

Git: Fix calls to ensureStash

Change-Id: I581afbe314055796d22f883e501dfb5fd17117fe
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 4e5e6b45
......@@ -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;
......
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