Check if path is empty

Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
pull/1913/head
Somtochi Onyekwere 3 years ago committed by Hidde Beydals
parent 9c1542c3f3
commit e926321094

@ -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…
Cancel
Save