File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ async function sign({
2020 commitMessage ,
2121 oid ,
2222 [ parent ] ,
23- 'gpgsig' ,
2423 onSignature
2524 )
2625 return commit . toString ( )
@@ -43,7 +42,11 @@ async function sign({
4342 }
4443 const signed = await openpgp . sign ( options )
4544 const signature = signed . signature
46- return signature
45+ return {
46+ code : git . Error . CODE . OK ,
47+ field : 'gpgsig' ,
48+ signedData : signature
49+ }
4750 }
4851}
4952
Original file line number Diff line number Diff line change 11{
22 "name" : " pgp-commit" ,
3- "version" : " 0.1.1 " ,
3+ "version" : " 1.0.0 " ,
44 "description" : " PGP signing of commits with openpgp and nodegit" ,
55 "main" : " index.js" ,
66 "author" : " dabutvin" ,
1010 "url" : " https://github.com/dabutvin/pgp-commit.git"
1111 },
1212 "dependencies" : {
13- "nodegit" : " ^0.25.0-alpha.1 " ,
13+ "nodegit" : " ^0.25.0" ,
1414 "openpgp" : " ^4.2.2"
1515 }
1616}
You can’t perform that action at this time.
0 commit comments