Skip to content

Commit

Permalink
Merge pull request #114 from alexbirkett/load_blob_fix
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
creationix committed Dec 29, 2014
2 parents f9997bf + 01abd31 commit 5f97b51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -147,7 +147,7 @@ var commit = yield repo.loadAs("commit", commitHash);
// We then read the tree using `commit.tree`.
var tree = yield repo.loadAs("tree", commit.tree);
// We then read the file using the entry hash in the tree.
var file = yield repo.loadAs("blob", tree["greeting.txt"]);
var file = yield repo.loadAs("blob", tree["greeting.txt"].hash);
// file is now a binary buffer.
```

Expand Down

0 comments on commit 5f97b51

Please sign in to comment.