Swap out the slashes for msysgit bash support #4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I was unable to use npm to install a node based git command extension. The
dirname "$0"
command in the shim script always return.
due to the path returning being a windows path when running in git bash. After playing around and research I found that other git extensions usesed
to swap out the slashes for similar reasons.Change I used comes from: https://github.com/nvie/gitflow/blob/develop/git-flow#L50
I couldn't come up with a good test to prove the issue and the fix. Everything I tried kept resolving. I did copy the
index.js
script into my local npm install and reinstalled the troublesome npm package. After that things worked fine. Tested on Windows 7 git bash and normal command prompt.