mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-19 22:28:24 +00:00
parent
04017f259b
commit
621f2fcadb
@ -290,6 +290,11 @@ Loop:
|
||||
return false, nil, nil, err
|
||||
}
|
||||
defer gitRepo.Close()
|
||||
isEmpty, err := gitRepo.IsEmpty()
|
||||
if err != nil {
|
||||
return false, nil, nil, err
|
||||
}
|
||||
if !isEmpty {
|
||||
commit, err := gitRepo.GetCommit(parentCommit)
|
||||
if err != nil {
|
||||
return false, nil, nil, err
|
||||
@ -303,6 +308,7 @@ Loop:
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return true, signingKey, sig, nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user