-
-
Notifications
You must be signed in to change notification settings - Fork 320
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
Verifying commit signature using raw() does not return the expected result #990
Comments
Response is still incorrect, waiting for steveukx/git-js#990 to get resolved
Hi, thanks for opening the issue. From reading through the git docs the missing content will be down to the output being printed to To help with setting up the parser, please can you run the following in terminal:
Then include those two to this issue (please obscure personally identifiable information with a series of Xs in place of some of the characters). |
Hey, thanks for the response. You seem to be correct, the GnuPG response is being piped to stderr. Here is the output from some random recent commit of mine ( out.txt
err.txt
I'm honestly not sure what to sensor, isn't this public information? Anyone should be able to get the same output when running that command on that repository, right? Let me know if you need anything else. |
Hey,
I'm trying to verify a commit signature using
git verify-commit <hash>
.Running this command in my terminal in the repository folder works, and shows the expected result with
gpg: Signature made <date>...
and so on.Running the same command through simple-git like this (simplified):
...just returns nothing, as if the commit was not signed.
Doing it via callback (
git.raw(["verify-commit", hash], (err, data) => { ...
) results in the same behavior.Adding the verbose param (like this:
git.raw(["verify-commit", "-v", hash]).then(res => console.log(res))
) returns a response, including the correct commit message, however the gpg part is missing again.Do you have an idea how I can make simple-git behave as git does through my terminal?
Both simple-git and git on my system report the same version (2.44.0).
The text was updated successfully, but these errors were encountered: