Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

diff.blobToBuffer: Fix passing in Buffers instead of strings.#964

Merged
johnhaley81 merged 2 commits intonodegit:masternodegit/nodegit:masterfrom
tylerchurch:patch-2tylerchurch/nodegit:patch-2Copy head branch name to clipboard
Mar 24, 2016
Merged

diff.blobToBuffer: Fix passing in Buffers instead of strings.#964
johnhaley81 merged 2 commits intonodegit:masternodegit/nodegit:masterfrom
tylerchurch:patch-2tylerchurch/nodegit:patch-2Copy head branch name to clipboard

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.