Skip to content
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

Support gpgsig parsing and some extra fixes #20

Merged
merged 5 commits into from
Jun 6, 2014

Conversation

lancechentw
Copy link

This pull request consists of one major feature and three minor fixes

  1. Support gpgsig parsing d27c138
  2. Make only files under text/fixtures treated as binary 3490c23
  3. Remove redundant code in parse_commits 9ab97cc
  4. Fix unknown property 'first' 6817011

Signed-off-by: Lance Chen <cyen0312@gmail.com>
Without this patch, parsing through commits
that are gpg signed would fail.

Signed-off-by: Lance Chen <cyen0312@gmail.com>
There are two reasons for removing these lines of code

1. There are no push methods for strings (author_line/committer_line)
2. git does not support multiple authors/committers

Signed-off-by: Lance Chen <cyen0312@gmail.com>
I can't find the 'first' property anywhere,
though it does not cause any problem.

Signed-off-by: Lance Chen <cyen0312@gmail.com>
@notatestuser
Copy link
Owner

3490c23 had to happen, so I've picked that as 21f4c6d. Could we get a test for the sig parsing?

@lancechentw
Copy link
Author

Not sure if I'm doing it right. Please check! 😕

@notatestuser
Copy link
Owner

Could you validate the content of the signature in addition to asserting that it is there?

@lancechentw
Copy link
Author

I don't quite understand your question. Do you mean if I can check whether the signature is a valid gpg signature instead of some forged garbage?

@notatestuser
Copy link
Owner

Ah no. Just testing the contents of gpgsig against the commit's signature would be good. It's an array of lines, right?

Signed-off-by: Lance Chen <cyen0312@gmail.com>
@lancechentw
Copy link
Author

Sorry for the late response. I have added a test case to validate the signature content.

@notatestuser
Copy link
Owner

Thank you!

notatestuser added a commit that referenced this pull request Jun 6, 2014
Support gpgsig parsing and some extra fixes
@notatestuser notatestuser merged commit 5fcea7f into notatestuser:master Jun 6, 2014
@lancechentw lancechentw deleted the pr branch June 6, 2014 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants