Visitar URL original
adds support for gpg commit signing (fixes #1018) by dabutvin · Pull Request #1448 · nodegit/nodegit · GitHub
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
add final newline to commit buffer
 - the commit that gets created  and the signed content have to match
  • Loading branch information
dabutvin committed Dec 16, 2018
commit 90e9d892bee058aa99e7e972ebb9a9b18dcbc5b5
2 changes: 1 addition & 1 deletion lib/repository.js
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ Repository.prototype.createCommitWithSignature = function(
parents
);
}).then(function(commit_contentResult) {
commit_content = commit_contentResult;
commit_content = commit_contentResult + "\n";
return onSignature(commit_content);
}).then(function(signature) {
return Commit.createWithSignature(
Expand Down
2 changes: 1 addition & 1 deletion test/tests/commit.js
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ describe("Commit", function() {
}

var test = this;
var expectedCommitId = "53bb69297148decb1d75e015f66a7e5f4e0476c9";
var expectedCommitId = "ccb99bb20716ef7c37e92c7b8db029a7af7f747b";
var fileName = "newfile.txt";
var fileContent = "hello world";

Expand Down