From d8a29e11b24c08f0a2a614ff14e588bc5bb838ff Mon Sep 17 00:00:00 2001 From: George MacRorie Date: Tue, 21 May 2024 12:47:26 +0100 Subject: [PATCH] fix(fs/git): rely on default original remote for fetch Signed-off-by: George MacRorie --- internal/storage/fs/git/store.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/storage/fs/git/store.go b/internal/storage/fs/git/store.go index a8f2a67175..075727bc5d 100644 --- a/internal/storage/fs/git/store.go +++ b/internal/storage/fs/git/store.go @@ -288,9 +288,8 @@ func (s *SnapshotStore) fetch(ctx context.Context, heads []string) (bool, error) } if err := s.repo.FetchContext(ctx, &git.FetchOptions{ - Auth: s.auth, - RemoteURL: s.url, - RefSpecs: refSpecs, + Auth: s.auth, + RefSpecs: refSpecs, }); err != nil { if !errors.Is(err, git.NoErrAlreadyUpToDate) { return false, err