diff --git a/lib/Repository.js b/lib/Repository.js index 74452dde..931a16e8 100644 --- a/lib/Repository.js +++ b/lib/Repository.js @@ -784,9 +784,9 @@ class Repository extends Requestable { return this.getSha(branch, filePath) .then((response) => { commit.sha = response.data.sha; - return this._request('PUT', `/repos/${this.__fullname}/contents/${filePath}`, commit, cb); + return this._request('PUT', `/repos/${this.__fullname}/contents/${filePath}`, commit, cb, options.raw); }, () => { - return this._request('PUT', `/repos/${this.__fullname}/contents/${filePath}`, commit, cb); + return this._request('PUT', `/repos/${this.__fullname}/contents/${filePath}`, commit, cb, options.raw); }); }