Skip to content

Added missing arguments to compare - #802

Merged
maxkorp merged 2 commits into
nodegit:masterfrom
smith-kyle:hotfix-is-self
Nov 30, 2015
Merged

maxkorp merged 2 commits into
nodegit:masterfrom
smith-kyle:hotfix-is-self

Conversation

@smith-kyle

Copy link
Copy Markdown
Contributor

This should fix #800. The issue was that the second argument was marked as isSelfin the following methods. So comparing two objects really just compared an object to itself.

From what I could tell this will only change the following:

  • Hashsig#compare
  • Oid#cmp
  • Oid#equal
  • Oid#ncmp
  • Reference#cmp
  • Strarray#copy

The old isSelf condition didn't account for cases like .compare or
.equal
maxkorp added a commit that referenced this pull request Nov 30, 2015
Added missing arguments to compare
@maxkorp
maxkorp merged commit 835d122 into nodegit:master Nov 30, 2015
@maxkorp

maxkorp commented Nov 30, 2015

Copy link
Copy Markdown
Collaborator

Awesome, thanks!

maxkorp added a commit that referenced this pull request Nov 30, 2015
@smith-kyle
smith-kyle deleted the hotfix-is-self branch November 30, 2015 15:53
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.

Bug: False positives when using compare

2 participants