Closed voroshkov closed 7 years ago
Are you sure this is due to pre-git and not general remote server? Can you skip the hook using --no-verify
option?
I had set the config as described above, then completely removed git hooks from .git folder in local repo, then ran npm install
. And this led me to error upon pushing.
Then I replaced version to 1.4.0 in package.json and ran npm install
again. Hooks got updated and pushing worked fine.
Haven't tried to skip the hook though.
I've just tested omitting the hook using --no-verify
in 3.10.0 - it pushes fine.
Hmm in this case you will have to debug it, no idea why such weird error would happen
Sent from my iPhone
On Oct 27, 2016, at 09:18, Andrey Voroshkov notifications@github.com wrote:
I've just tested omitting the hook using --no-verify in 3.10.0 - it pushes fine.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
Ok, thanks for your reply. Will try to debug.
Hi voroshkov,
I ran into the exact same problem using v3.11, I am under the impression that you need credentials to execute the git ls-remote
command, but these are not included when running the command from pre-push.js
You need to set up your git credentials so that you're never asked for them and the git ls-remote command (and all other needing authentication) can run smoothly.
@Ripley511, unfortunately I couldn't dig deep enough to solve it. Just reverted to using the older version.
Just edited my comment with a possible answer, sorry I did not write AFTER debugging ^^
Oh, I see, thanks! Indeed I've set up git to always ask for credentials.
Cannot "git push" after updating from 1.4.0 to 3.10.0 on Windows.
Getting the following error:
I'm using the following config in package.json: