8000 diff.blobToBuffer: Fix passing in Buffers instead of strings. by tylerchurch · Pull Request #964 · nodegit/nodegit · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@tylerchurch
Copy link
Contributor

Been seeing some strageness with blobToBuffer (see the issue I created over here, for example: #963 )

This pull requests fixes the fact that if you pass in an object of type Buffer, it is turned into a string, but then that string is never used (and because of the way the C bindings are written, because the object isn't of type string, it gets turned into a null, and you get a diff that looks like there's no content in the file.)

@joshaber
Copy link
Collaborator

Bah, good catch 👍

@johnhaley81 johnhaley81 merged commit 75b015d into nodegit:master Mar 24, 2016
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.

3 participants

0