mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 04:34:59 +00:00
fix: Improve in-progress rebase handling (#933)
* fix: Improve in-progress rebase handling * fix: Close merge popup even if there are conflicts (#941)
This commit is contained in:
parent
c2950ad209
commit
a4157e11e6
4 changed files with 20 additions and 9 deletions
|
@ -107,8 +107,12 @@ namespace SourceGit.ViewModels
|
|||
{
|
||||
_gitDir = repo.GitDir;
|
||||
|
||||
var stoppedSHA = File.ReadAllText(Path.Combine(repo.GitDir, "rebase-merge", "stopped-sha")).Trim();
|
||||
StoppedAt = new Commands.QuerySingleCommit(repo.FullPath, stoppedSHA).Result() ?? new Models.Commit() { SHA = stoppedSHA };
|
||||
var stoppedSHAPath = Path.Combine(repo.GitDir, "rebase-merge", "stopped-sha");
|
||||
if (File.Exists(stoppedSHAPath))
|
||||
{
|
||||
var stoppedSHA = File.ReadAllText(stoppedSHAPath).Trim();
|
||||
StoppedAt = new Commands.QuerySingleCommit(repo.FullPath, stoppedSHA).Result() ?? new Models.Commit() { SHA = stoppedSHA };
|
||||
}
|
||||
|
||||
var ontoSHA = File.ReadAllText(Path.Combine(repo.GitDir, "rebase-merge", "onto")).Trim();
|
||||
Onto = new Commands.QuerySingleCommit(repo.FullPath, ontoSHA).Result() ?? new Models.Commit() { SHA = ontoSHA };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue