Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rcx/wsl-gitproxy

Proxy exe to call WSL git from Windows
https://github.com/rcx/wsl-gitproxy

git windows workaround wsl

Last synced: 16 days ago
JSON representation

Proxy exe to call WSL git from Windows

Awesome Lists containing this project

README

        

# WSL git.exe proxy

This project provides a `git.exe` that interoperates between Windows and WSL.
It does path conversions, etc.

Because of a [bug in WSL](https://github.com/Microsoft/WSL/issues/3246), some users' mounted drives don't get recognized properly by WSL.
This breaks path conversions and the working directory when calling `wsl.exe`.
The file `wslpath` is a python script intended to work around that.

This proxy converts the paths of arguments and maintains ANSI colors.

## Setup

- Place `wslpath` at `/home/user/bin/wslpath` in the WSL filesystem. You can adjust the path in Program.cs as the constant "wslpath". If you are not affected by the wslpath bug, you can change this to `"/bin/wslpath"`.
- Compile this project and put the executable somewhere in your PATH. It serves as a drop-in replacement for `git.exe`. It executes the WSL command based on its exe name, so to use this for perl, for example, rename it to `perl.exe`.