diff --git a/pkg/vcs/git.go b/pkg/vcs/git.go index 7069332..dfc7115 100644 --- a/pkg/vcs/git.go +++ b/pkg/vcs/git.go @@ -163,7 +163,11 @@ func (g *gitVCS) Zip(ctx context.Context, version Version) (io.ReadCloser, error if submodule(f.Name) { continue } - if !f.Mode.IsRegular() { + mode, err := f.Mode.ToOSFileMode() + if err != nil { + return nil, err + } + if !mode.IsRegular() { continue } name := f.Name