Provisioning: Require author name (#104789)
This commit is contained in:
@@ -371,9 +371,13 @@ func (g *GoGitRepo) maybeCommit(ctx context.Context, message string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
opts := &git.CommitOptions{}
|
||||
opts := &git.CommitOptions{
|
||||
Author: &object.Signature{
|
||||
Name: "grafana",
|
||||
},
|
||||
}
|
||||
sig := repository.GetAuthorSignature(ctx)
|
||||
if sig != nil {
|
||||
if sig != nil && sig.Name != "" {
|
||||
opts.Author = &object.Signature{
|
||||
Name: sig.Name,
|
||||
Email: sig.Email,
|
||||
|
||||
Reference in New Issue
Block a user