FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

diff.blobToBuffer: Fix passing in Buffers instead of strings. by tylerchurch · Pull Request #964 · nodegit/nodegit · GitHub

Repository navigation

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

Merged
johnhaley81 merged 2 commits into
nodegit:masterfrom
tylerchurch:patch-2
Mar 24, 2016
Merged

johnhaley81 merged 2 commits into
nodegit:masterfrom
tylerchurch:patch-2

Conversation

Copy link
Copy Markdown
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.)

Copy link
Copy Markdown
Collaborator

Bah, good catch 👍

johnhaley81 merged commit 75b015d into nodegit:master Mar 24, 2016
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL