mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-22 20:37:19 -08:00
feature<Rebase>: cleanup files remained by last rebase
This commit is contained in:
parent
6844e2d9ba
commit
3ce671af66
1 changed files with 9 additions and 0 deletions
|
@ -1049,6 +1049,9 @@ namespace SourceGit.Views.Widgets {
|
|||
|
||||
var rebaseTempFolder = Path.Combine(repo.GitDir, "rebase-apply");
|
||||
if (Directory.Exists(rebaseTempFolder)) Directory.Delete(rebaseTempFolder);
|
||||
|
||||
var rebaseMergeFolder = Path.Combine(repo.GitDir, "rebase-merge");
|
||||
if (Directory.Exists(rebaseMergeFolder)) Directory.Delete(rebaseMergeFolder);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1097,6 +1100,12 @@ namespace SourceGit.Views.Widgets {
|
|||
if (mode == "rebase") {
|
||||
var rebaseTempFolder = Path.Combine(repo.GitDir, "rebase-apply");
|
||||
if (Directory.Exists(rebaseTempFolder)) Directory.Delete(rebaseTempFolder);
|
||||
|
||||
var rebaseFile = Path.Combine(repo.GitDir, "REBASE_HEAD");
|
||||
if (File.Exists(rebaseFile)) Directory.Delete(rebaseFile);
|
||||
|
||||
var rebaseMergeFolder = Path.Combine(repo.GitDir, "rebase-merge");
|
||||
if (Directory.Exists(rebaseMergeFolder)) Directory.Delete(rebaseMergeFolder);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue