Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions generate/input/descriptor.json
Original file line number Diff line number Diff line change
Expand Up @@ -416,17 +416,21 @@
"update_ref": {
"isOptional": true
}
},
"isAsync": true,
"return": {
"isErrorCode": true
}
},
"git_commit_create_buffer": {
"ignore": true
},
"git_commit_create_from_callback": {
"ignore": true
},
"git_commit_create_from_ids": {
"ignore": true
},
"git_commit_create_from_v": {
"ignore": true
},
"git_commit_extract_signature": {
"ignore": true
},
Expand Down
16 changes: 10 additions & 6 deletions test/tests/stage.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,15 +304,19 @@ describe("Stage", function() {
return index.writeTree();
})
.then(function (oid) {
var signature = NodeGit.Signature.create("Foo bar",
"foo@bar.com", 123456789, 60);
return test.repository.createCommit("HEAD", signature, signature,
"initial commit", oid, []);
return test.repository.getHeadCommit()
.then(function(parent) {
var signature = NodeGit.Signature.create("Foo bar",
"foo@bar.com", 123456789, 60);
return test.repository.createCommit("HEAD", signature, signature,
"initial commit", oid, [parent]);
});
//... alright, we did a commit.
})
//Now if we compare head commit to index, should be a filemode change
// Now if we compare head commit to the workdir,
// there shouldn't be a filemode change
.then(function() {
return compareFilemodes(false, index, 0111 /* expect +x */);
return compareFilemodes(true, null, 0);
});
});

Expand Down