mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-10 09:47:28 +00:00
Check if path is empty
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
This commit is contained in:
parent
9c1542c3f3
commit
e926321094
1 changed files with 1 additions and 1 deletions
|
|
@ -194,7 +194,7 @@ func (g *GoGit) Commit(message git.Commit, opts ...git.Option) (string, error) {
|
|||
},
|
||||
}
|
||||
|
||||
if options.GPGSigningInfo != nil {
|
||||
if options.GPGSigningInfo != nil && options.GPGSigningInfo.PrivateKeyPath != "" {
|
||||
entity, err := getOpenPgpEntity(*options.GPGSigningInfo)
|
||||
if err != nil {
|
||||
return "", err
|
||||
|
|
|
|||
Loading…
Reference in a new issue