File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ async function sign({
20
20
commitMessage ,
21
21
oid ,
22
22
[ parent ] ,
23
- 'gpgsig' ,
24
23
onSignature
25
24
)
26
25
return commit . toString ( )
@@ -43,7 +42,11 @@ async function sign({
43
42
}
44
43
const signed = await openpgp . sign ( options )
45
44
const signature = signed . signature
46
- return signature
45
+ return {
46
+ code : git . Error . CODE . OK ,
47
+ field : 'gpgsig' ,
48
+ signedData : signature
49
+ }
47
50
}
48
51
}
49
52
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " pgp-commit" ,
3
- "version" : " 0.1.1 " ,
3
+ "version" : " 1.0.0 " ,
4
4
"description" : " PGP signing of commits with openpgp and nodegit" ,
5
5
"main" : " index.js" ,
6
6
"author" : " dabutvin" ,
10
10
"url" : " https://github.com/dabutvin/pgp-commit.git"
11
11
},
12
12
"dependencies" : {
13
- "nodegit" : " ^0.25.0-alpha.1 " ,
13
+ "nodegit" : " ^0.25.0" ,
14
14
"openpgp" : " ^4.2.2"
15
15
}
16
16
}
You can’t perform that action at this time.
0 commit comments