We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e30cc6f commit 0f9f864Copy full SHA for 0f9f864
1 file changed
lib/blob.js
@@ -13,7 +13,8 @@ var Blob = function(rawRepo, rawBlob) {
13
}
14
this.rawRepo = rawRepo;
15
16
- if(rawBlob instanceof git.raw.Blob) {
+ if(typeof rawBlob !== 'undefined' &&
17
+ rawBlob instanceof git.raw.Blob) {
18
this.rawBlob = rawBlob;
19
} else {
20
this.rawBlob = new git.raw.Blob(this.rawRepo);
0 commit comments