Skip to content

Git config pointing to %APPDATA%/wsltty #76

@pd93

Description

@pd93

As Visual Studio Code doesn't yet support WSL Git, I'm still having to use Git for Windows alongside WSL & WSLTTY. This is fine, but the problems start if I run ./git.exe --global --config using either of the two git.exe files from Git for Windows. It reports the following error:

fatal: unable to read config file 'C:/Users/myuser/AppData/Local/wsltty/home/myuser/.gitconfig': No such file or directory

It's as if it thinks the wsltty install directory is the root of the filesystem and it's looking for my global git config in a non-existent home directory.

Running the same command from the same directory in Git Bash or cmd produce the correct results, which is what makes me think this is a WSLTTY issue.

To make matters weirder... when I open vscode from WSLTTY using the code . command, it brings up an instance of vscode with the wrong git config again.

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