fix(Pull): make sure git pull succeeds before dropping stash

This commit is contained in:
leo 2020-08-07 17:02:43 +08:00
parent 861ed8bdb6
commit 5fa2c601a8

View file

@ -516,10 +516,8 @@ namespace SourceGit.Git {
}, true);
OnSubmoduleChanged?.Invoke();
AssertCommand(errs);
if (needPopStash) RunCommand("stash pop -q stash@{0}", null);
if (needPopStash && errs == null) RunCommand("stash pop -q stash@{0}", null);
}
/// <summary>