From 0c30a9da2f9a30a9f41c755879ea5be266180ce0 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 18 Jan 2025 10:34:58 -0600 Subject: parse .git/config --- reload.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'reload.go') diff --git a/reload.go b/reload.go index 3ac55c1..bb122c0 100644 --- a/reload.go +++ b/reload.go @@ -28,6 +28,12 @@ func (repo *Repo) Reload() error { repo.CheckDirty() repo.setRepoState() + if repo.GitConfig == nil { + if err := repo.updateGitConfig(); err != nil { + return err + } + } + // LastUpdate should always be the newest time repo.Times.LastUpdate = timestamppb.New(time.Now()) return nil -- cgit v1.2.3