T15: a commit empties the fields that still hold what it committed only once the shown folder has read and is in the same repository, so a draft typed while a nested repository reads stays
CI / platforms (windows-latest) (push) Failing after 8s
CI / macos (push) Failing after 8m46s
CI / platforms (ubuntu-24.04) (push) Canceled after 0s

This commit is contained in:
ZacharyZhang-NY committed 2026-10-14 21:03:32 -04:00
1 parent 27270ae565
commit fcd0792712
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -286,9 +286,9 @@ impl GitPanel {
let amend = self.amend;
let work = move |top: &Path| super::commit(top, &message, amend);
let committed = top.clone();
// A draft typed, or a box ticked, while it ran stays, as does all in another repository.
// A draft typed, or a box ticked, while it ran stays, as does all while a folder reads or in another repository.
let then = move |panel: &mut Self, cx: &mut Context<Self>| {
if !matches!(&panel.state, State::Read(repo, _) if repo.top == committed) {
if panel.current().is_none_or(|repo| repo.top != committed) {
return;
}
for (input, text) in [(&panel.subject, subject), (&panel.body, body)] {