Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Fix deprecations in test suite
  • Loading branch information
implausible committed Feb 15, 2019
commit d2e3e14e36800d3b1d12e179a711da4f3a7ac6eb
4 changes: 2 additions & 2 deletions lib/reference.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Reference.lookup = LookupWrapper(Reference);
* @return {Boolean}
*/
Reference.prototype.isConcrete = function() {
return this.type() == Reference.TYPE.OID;
return this.type() == Reference.TYPE.DIRECT;
};

/**
Expand Down Expand Up @@ -75,7 +75,7 @@ const getTerminal = (repo, refName, depth = 10, prevRef = null) => {

return NodeGit.Reference.lookup(repo, refName)
.then((ref) => {
if (ref.type() === NodeGit.Reference.TYPE.OID) {
if (ref.type() === NodeGit.Reference.TYPE.DIRECT) {
return {
error: NodeGit.Error.CODE.OK,
out: ref
Expand Down
2 changes: 1 addition & 1 deletion test/tests/diff.js
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ describe("Diff", function() {
})
.then(function([headTree, index]) {
const diffOptions = new NodeGit.DiffOptions();
if (index.caps() & Index.CAP.IGNORE_CASE !== 0) {
if (index.caps() & Index.CAPABILITY.IGNORE_CASE !== 0) {
diffOptions.flags |= Diff.OPTION.IGNORE_CASE;
}

Expand Down