From b0e321caaf6e08220deec3c9d60396e464939571 Mon Sep 17 00:00:00 2001 From: Andreas Wachter Date: Thu, 29 Aug 2024 16:02:14 +0200 Subject: [PATCH] fetch updates on a bare repo --- local/local.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/local/local.go b/local/local.go index 16b8798..9122a4f 100644 --- a/local/local.go +++ b/local/local.go @@ -372,6 +372,10 @@ func updateRepository(reponame string, auth transport.AuthMethod, dry bool, l ty if err != nil { return err } + } else { + sub.Info(). + Msgf("pulling %s", types.Green(reponame)) + err = r.Fetch(&git.FetchOptions{Auth: auth, RemoteName: "origin", RefSpecs: []config.RefSpec{"+refs/*:refs/*"}}) } } }