Skip to content

Commit

Permalink
fix(fs/git): rely on default original remote for fetch
Browse files Browse the repository at this point in the history
Signed-off-by: George MacRorie <[email protected]>
  • Loading branch information
GeorgeMac committed May 21, 2024
1 parent 421d205 commit d8a29e1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/storage/fs/git/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d8a29e1

Please sign in to comment.