Skip to content

Commit 0f9f864

Browse files
committed
Updated blob constructor
1 parent e30cc6f commit 0f9f864

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/blob.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ var Blob = function(rawRepo, rawBlob) {
1313
}
1414
this.rawRepo = rawRepo;
1515

16-
if(rawBlob instanceof git.raw.Blob) {
16+
if(typeof rawBlob !== 'undefined' &&
17+
rawBlob instanceof git.raw.Blob) {
1718
this.rawBlob = rawBlob;
1819
} else {
1920
this.rawBlob = new git.raw.Blob(this.rawRepo);

0 commit comments

Comments
 (0)