From af13e15ccab9930d117508afe954228cc944e044 Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Thu, 19 May 2022 14:55:07 -0400 Subject: [PATCH] fix: default config repo first commit time --- internal/config/config.go | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/internal/config/config.go b/internal/config/config.go index 184357787..bfacc99ed 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -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: "vt100@charm.sh", + When: time.Now(), + } _, err = wt.Commit("Default init", &ggit.CommitOptions{ - All: true, - Author: &object.Signature{ - Name: "Soft Serve Server", - Email: "vt100@charm.sh", - }, + All: true, + Author: author, }) if err != nil { return err