Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/rcx/wsl-gitproxy
- Owner: rcx
- License: mit
- Created: 2018-10-15T02:36:15.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-20T20:49:17.000Z (almost 5 years ago)
- Last Synced: 2024-11-17T08:19:23.110Z (3 months ago)
- Topics: git, windows, workaround, wsl
- Language: C#
- Size: 11.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`.