Skip to content

[Bug]: Git explorer logs errors every 5s when the opened folder is not a git repo #19

@matiaspalmac

Description

@matiaspalmac

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

  1. Abrir la app.
  2. Open folder → seleccionar una carpeta cualquiera que no sea repo git.
  3. Click en la pestaña "Source Control".
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions