fix<Stash>: fix stash failed when there's too many files to be stashed

This commit is contained in:
leo 2023-10-10 16:59:47 +08:00
parent 905531f2db
commit ccb3c07064
4 changed files with 53 additions and 31 deletions

View file

@ -31,7 +31,7 @@ namespace SourceGit.Commands {
if (needStash) {
var changes = new LocalChanges(Cwd).Result();
if (changes.Count > 0) {
if (!new Stash(Cwd).Push(changes, "PULL_AUTO_STASH")) {
if (!new Stash(Cwd).Push(changes, "PULL_AUTO_STASH", true)) {
return false;
}
} else {