-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Script error on Git Bash (Windows) #68
Comments
Perhaps I think this error relates to #63. |
Probably it is more related to #33 |
tried on Windows v3.4.1, seems to work, reopen if not fixed |
@bahmutov
This is the installed #!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../pre-git/bin/pre-commit.js" "$@"
ret=$?
else
node "$basedir/../pre-git/bin/pre-commit.js" "$@"
ret=$?
fi
exit $ret This is the installed #!/bin/sh
/usr/bin/env node --harmony ./node_modules/.bin/pre-commit "$@" |
Sorry, I have no right to reopen this issue. |
Ok, I have reopened the issue @ybiquitous but the solution on Windows is up to you (pull requests are very welcome) - basically I don't have an access to Windows machine for development, and no use for supporting Windows, but if you can do this, it would be great and helpful to many people I think |
I will try it. It may take a little time... |
First, I tried modifying
This worked on Windows, but not on Linux. If using
So I wrote wrapper shell script such as Please give me a review. |
fix(bin): added --harmony option wrapper scripts(cross-platform), fixes #68
Had a problem running on Mac OSX
tried to commit a file
|
Hi, |
Umm... Can we borrow code snippets (alternative |
Sure, try it Sent from my iPhone
|
Thanks, I will try it. |
I encountered the following script error on Git Bash (Windows 7).
Environment:
Reproduction:
Open Git Bash and run the following commands on terminal.
package.json.txt
npm-debug.log.txt
The text was updated successfully, but these errors were encountered: