-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: default config repo first commit time
- Loading branch information
1 parent
875ff2b
commit af13e15
Showing
1 changed file
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ import ( | |
"strings" | ||
"sync" | ||
"text/template" | ||
"time" | ||
|
||
"golang.org/x/crypto/ssh" | ||
"gopkg.in/yaml.v3" | ||
|
@@ -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 | ||
|