Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix non-existent / dangling refs cause Repository.prototype.createCommitWithSignature to fail #1624

Merged

Conversation

emmax86
Copy link
Collaborator

@emmax86 emmax86 commented Feb 7, 2019

Repository.prototype.createCommit is able to handle updates to refs which do not exist because of the internal implementation of git_commit_create in libgit2. This PR exposes a reimplementation of this functionality so that Repository.prototype.createCommitWithSignature exhibits the same functionality.

Copy link
Member

@implausible implausible left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Can you adjust the documentation in these 2 spots, please?

}

return result;
return NodeGit.Signature.default(this)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you update the JSDoc above this to be @async

.catch(() => NodeGit.Signature.now("unknown", "unknown"));
};

Reference.updateTerminal = function (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you JSDoc this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants