diff --git a/src/components/WorkspaceFiles.vue b/src/components/WorkspaceFiles.vue index 5b06e1b..7cb5c0e 100644 --- a/src/components/WorkspaceFiles.vue +++ b/src/components/WorkspaceFiles.vue @@ -258,9 +258,9 @@ export default defineComponent({ async refresh() { // --untracked-files=all - Also shows individual files in untracked directories const data = await git_async([ 'status', '--porcelain', '--untracked-files=all' ]); - if (data) { - this.parseStatus(data); - } + // An empty result means a clean working tree (e.g. right after a commit or revert): + // it must still be applied, otherwise the list keeps stale entries. + this.parseStatus(data || ''); }, }, })