Skip to content

Commit

Permalink
Conflicter to handle null file.contents - Fix #950
Browse files Browse the repository at this point in the history
  • Loading branch information
SBoudrias committed Nov 26, 2016
1 parent d6345f7 commit 687b9be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util/conflicter.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ Conflicter.prototype._ask = function (file, cb) {
this.adapter.log.writeln(binaryDiff.diff(file.path, file.contents));
} else {
var existing = fs.readFileSync(file.path);
this.adapter.diff(existing.toString(), file.contents.toString());
this.adapter.diff(existing.toString(), (file.contents || '').toString());
}

return this._ask(file, cb);
Expand Down

0 comments on commit 687b9be

Please sign in to comment.