mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
git: rebase: refresh the repo state info ASAP
it used to wait for the full refresh to complete, which can be slow. in particular it led to such unfortunate effects: clicking abort in the error notification could say "no rebase in progress" because the VFS refresh didn't force .git/ files to refresh yet.
This commit is contained in:
@@ -139,6 +139,7 @@ public class GitRebaseProcess {
|
||||
}
|
||||
|
||||
GitRebaseStatus rebaseStatus = rebaseSingleRoot(repository, customMode, getSuccessfulRepositories(statuses));
|
||||
repository.update(); // make the repo state info actual ASAP
|
||||
statuses.put(repository, rebaseStatus);
|
||||
if (shouldBeRefreshed(rebaseStatus)) {
|
||||
toRefresh.add(repository);
|
||||
|
||||
Reference in New Issue
Block a user