1
0
mirror of synced 2026-02-06 19:05:55 +00:00

Check if path is empty

Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
This commit is contained in:
Somtochi Onyekwere
2021-10-08 17:43:22 +01:00
committed by Hidde Beydals
parent 9c1542c3f3
commit e926321094

View File

@@ -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