Skip to content

"The directory is not under git source control" when opening a WSL (valid) git repo #2802

@par4dise

Description

@par4dise

Description

When trying to open a repo, I can browse WSL filesystem, I get into a folder with a valid git repo, I select that folder and get the aforementioned error message + an option to "Initialize a git repository" in this same folder.

Investigation

In fork I tried to access to WSL system using \\wsl$ and \\wsl.localhost: same issue for both.

From a powershell console I could successfully:

  • Navigate to the folder in which my repo is, on WSL filesystem
  • List items within this folder
  • Run git status and detect git changes

So my binary git for Windows (which is the one used by Fork) works well.

The log file doesn't say much, when it fails to load the git repo only those 3 lines are added:

🔷 2026-06-16 17:35:58.721 Application Window Activated: skip (Open File Dialog)
🔷 2026-06-16 17:36:46.098 WindowActivated
🔷 2026-06-16 17:36:46.098 Application Window Activated: skip (OpenRepositoryAlertWindow)

Configuration

Fork 2.20.1.0
git for Windows 2.54.0
Windows 11 Enterprise, Version 26H1, OS build 28000.2113, Experience Windows Feature Experience Pack 1000.26100.298.0

Related?

#701 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions