Skip to content

Commit 02b71b1

Browse files
committed
fix(repository): replace references of postTree with createTree
Closes github-tools#282
1 parent a6231e0 commit 02b71b1

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55

66
### Fixes
77

8+
## 1.2.1
9+
### Fixes
10+
* `Repository`: Replace invalid references to `postTree` with `createTree`
11+
812
## 1.2.0 - 2015/05/11
913
### Features
1014
* Search API now returns all pages of results

lib/Repository.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ class Repository extends Requestable {
254254
* @param {string} blobSHA - the SHA for the blob to put at `path`
255255
* @param {Requestable.callback} cb - will receive the new tree that is created
256256
* @return {Promise} - the promise for the http request
257-
* @deprecated use {@link Repository#postTree} instead
257+
* @deprecated use {@link Repository#createTree} instead
258258
*/
259259
updateTree(baseTreeSHA, path, blobSHA, cb) {
260260
let newTree = {
@@ -516,7 +516,7 @@ class Repository extends Requestable {
516516
}
517517
});
518518

519-
this.postTree(tree, function(err, rootTree) {
519+
this.createTree(tree, function(err, rootTree) {
520520
this.commit(latestCommit, rootTree, 'Deleted ' + path, function(err, commit) {
521521
this.updateHead(branch, commit, cb);
522522
});

0 commit comments

Comments
 (0)