Skip to content

Can it generate signed commits and tags? #579

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

Closed
ankostis opened this issue Feb 3, 2017 · 3 comments
Closed

Can it generate signed commits and tags? #579

ankostis opened this issue Feb 3, 2017 · 3 comments
Labels

Comments

@ankostis
Copy link
Contributor

ankostis commented Feb 3, 2017

I'm suspecting that #124 is only for parsing signed-commits. And there is no support for signed tags.
Is that correct?

How much effort would it be to support creating signed commits & tags?

@Natim
Copy link

Natim commented Feb 15, 2017

Did you try to add this in your .git/config or ~/.gitconfig:

[commit]
gpgsign = true

[tag]
gpgsign = true

@ankostis
Copy link
Contributor Author

Tag works, if you pass -u or --sign flags when creating tags.
For commits, I did try that and it didn't seem to work.

Actually I peaked at the code a little, and I think it does not use git command when committing, but gitdb pure-python library. And this library (I think) does not know how to sign commits.

@Byron Byron added the Q&A label Feb 25, 2017
@Byron
Copy link
Member

Byron commented Feb 25, 2017

The pure-python implementation is rather minimal and does not support signing.
In these cases, please resort to using the git command directly via repo.git.commit(<arg-to-commit-with-signature>).
Even though I am closing the issue, please feel free to leave additional comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants