Skip to content

Commit bdaa1f0

Browse files
committed
update for nodegit 0.25.0
1 parent 41df4b2 commit bdaa1f0

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

index.js

+5-2
Original file line numberDiff line numberDiff 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

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",
@@ -10,7 +10,7 @@
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
}

0 commit comments

Comments
 (0)