Skip to content

Conversation

GTRI-nathan
Copy link

The compare function was comparing objects instead of seconds, always returning the same result (false, I believe). I believe it is correct to compare just seconds without the offset, as I believe seconds should be since the Unix epoch which is timezone independent, but I'm not positive. When fixed, it revealed that the seen map was not being updated during the walk, leading to duplicate commits being emitted (would walk down both sides of a merge and then the shared history twice).

@TheKnarf
Copy link
Collaborator

Hi @GTRI-nathan and welcome as a first-time contributor!

Would it be possible to add a test verifying the issue you saw? Our test suit is a bit sparse at the moment, but you can find tests in the test/ folder. If I can run a test and verify your changes then I'd love to merge it in. :)

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