Describe the bug
Cuando rootPath no es un repositorio Git, el poll de get_git_status cada 5s lanza dos errores en la consola: 1. [Tauri Invoke Error] get_git_status: "fatal: not a git repository (or any of the parent directories): .git\n" en src/api/tauri.ts:94.
2. [Git refresh error] "fatal: not a git repository (or any of the parent directories): .git\n" en src/addons/builtin.git-explorer/GitExplorerComponent.tsx:197.
Ambos se repiten indefinidamente mientras la pestaña Source Control esté activa y el estado de stagedChanges, gitChanges, branches y currentBranch no se limpia al cambiar desde una carpeta que sí era repo hacia una que no.
Steps to Reproduce
- Abrir la app.
- Open folder → seleccionar una carpeta cualquiera que no sea repo git.
- Click en la pestaña "Source Control".
- Esperar ~5s: aparece
[Tauri Invoke Error] get_git_status: ... y se repite indefinidamente.
Trixty Version
v1.0.8
What operating system are you using?
Windows
Would you like to fix this bug yourself by sending a PR?
Yes
Describe the bug
Cuando
rootPathno es un repositorio Git, el poll deget_git_statuscada 5s lanza dos errores en la consola: 1.[Tauri Invoke Error] get_git_status: "fatal: not a git repository (or any of the parent directories): .git\n"ensrc/api/tauri.ts:94.2.
[Git refresh error] "fatal: not a git repository (or any of the parent directories): .git\n"ensrc/addons/builtin.git-explorer/GitExplorerComponent.tsx:197.Ambos se repiten indefinidamente mientras la pestaña Source Control esté activa y el estado de
stagedChanges,gitChanges,branchesycurrentBranchno se limpia al cambiar desde una carpeta que sí era repo hacia una que no.Steps to Reproduce
[Tauri Invoke Error] get_git_status: ...y se repite indefinidamente.Trixty Version
v1.0.8
What operating system are you using?
Windows
Would you like to fix this bug yourself by sending a PR?
Yes