mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-11 22:46:27 +00:00
fix(git): fix gpg commit signing (#30943)
This commit is contained in:
parent
1f3ab66d33
commit
1fb493ee7a
2 changed files with 2 additions and 2 deletions
|
@ -66,7 +66,7 @@ describe('util/git/private-key', () => {
|
||||||
expect(exec.exec).toHaveBeenCalledWith('git config commit.gpgsign true', {
|
expect(exec.exec).toHaveBeenCalledWith('git config commit.gpgsign true', {
|
||||||
cwd: repoDir,
|
cwd: repoDir,
|
||||||
});
|
});
|
||||||
expect(exec.exec).toHaveBeenCalledWith('git config gpg.format opengpg', {
|
expect(exec.exec).toHaveBeenCalledWith('git config gpg.format openpgp', {
|
||||||
cwd: repoDir,
|
cwd: repoDir,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -55,7 +55,7 @@ abstract class PrivateKey {
|
||||||
}
|
}
|
||||||
|
|
||||||
class GPGKey extends PrivateKey {
|
class GPGKey extends PrivateKey {
|
||||||
protected readonly gpgFormat = 'opengpg';
|
protected readonly gpgFormat = 'openpgp';
|
||||||
|
|
||||||
protected async importKey(): Promise<string | undefined> {
|
protected async importKey(): Promise<string | undefined> {
|
||||||
const keyFileName = upath.join(os.tmpdir() + '/git-private-gpg.key');
|
const keyFileName = upath.join(os.tmpdir() + '/git-private-gpg.key');
|
||||||
|
|
Loading…
Reference in a new issue