Skip to content

Commit

Permalink
fix: default config repo first commit time
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Jun 3, 2022
1 parent 875ff2b commit af13e15
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"strings"
"sync"
"text/template"
"time"

"golang.org/x/crypto/ssh"
"gopkg.in/yaml.v3"
Expand Down Expand Up @@ -223,12 +224,14 @@ func (cfg *Config) createDefaultConfigRepo(yaml string) error {
if err != nil {
return err
}
author := &object.Signature{
Name: "Soft Serve Server",
Email: "[email protected]",
When: time.Now(),
}
_, err = wt.Commit("Default init", &ggit.CommitOptions{
All: true,
Author: &object.Signature{
Name: "Soft Serve Server",
Email: "[email protected]",
},
All: true,
Author: author,
})
if err != nil {
return err
Expand Down

0 comments on commit af13e15

Please sign in to comment.