Skip to content

thread 'main' (35636) panicked at src\main.rs:511:14 #151

@mathias-buder

Description

@mathias-buder

Hi, I’ve been using this tool with Fork for quite some time and it has always worked flawlessly. I installed everything according to the instructions and selected the Git instance as shown below:

Image

Recently, however, Fork started reporting an issue when trying to read my repositories:

⚠️ 2026-03-16 15:03:01.173 Refreshing repository status failed: fatal: detected dubious ownership in repository at '//wsl.localhost/SpitfireWSLImage2/projects/MyRepo'
To add an exception for this directory, call:

    git config --global --add safe.directory '%(prefix)///wsl.localhost/SpitfireWSLImage2/projects/MyRepo'

This has happened before when accessing a repository in WSL using the Windows Git instance. I checked Fork’s Git settings and noticed it had been reset to the default Windows version. I tried switching back to the Wslgit version, but it didn’t seem to take effect until I restarted Fork. Shortly after, it switched back to the Windows Git instance again.

I opened Fork’s log file and tried selecting Wslgit again, with the following result:

🔷 2026-03-16 14:49:44.273 Running 'C:\Users\user1\wslgit\bin\git.exe version'
⚠️ 2026-03-16 14:49:44.376 Shell request 'C:\Users\mb1052228\wslgit\bin\git.exe version' failed: '
thread 'main' (35636) panicked at src\main.rs:511:14:
Failed to execute command 'git -c credential.helper= -c "credential.helper=$(wslpath 'C:/Users/user1/AppData/Local/Fork/current/Fork.AskPass.exe')" -c credential.helper=manager version': Os { code: 6, kind: Uncategorized, message: "The handle is invalid." }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrac

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions