Skip to content

Commit

Permalink
chore: allow no author
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobmoellerdev committed Oct 7, 2024
1 parent 4a5d317 commit deeec78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
6 changes: 2 additions & 4 deletions api/oci/extensions/repositories/git/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ type RepositoryImpl struct {
client git.Client
}

var (
_ cpi.Repository = (*RepositoryImpl)(nil)
)
var _ cpi.Repository = (*RepositoryImpl)(nil)

func New(ctx cpi.Context, spec *RepositorySpec, creds credentials.Credentials) (Repository, error) {
urs := spec.UniformRepositorySpec()
Expand Down Expand Up @@ -116,7 +114,7 @@ func (r *RepositoryImpl) LookupNamespace(name string) (cpi.NamespaceAccess, erro
return NewNamespace(r, name)
}

// small helper to wrap accessio.Closer to allow calling an arbitrary closing logic
// small helper to wrap accessio.Closer to allow calling an arbitrary closing logic.
type repoCloseUpdater struct {
close func() error
}
Expand Down
8 changes: 0 additions & 8 deletions api/tech/git/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,14 +164,6 @@ func (c *client) newRepository(ctx context.Context, repo *git.Repository) error
return err
}

if err := worktree.AddGlob("*"); err != nil {
return err
}

if _, err := worktree.Commit("OCM Repository Setup", &git.CommitOptions{}); err != nil && !errors.Is(err, git.ErrEmptyCommit) {
return err
}

return nil
}

Expand Down

0 comments on commit deeec78

Please sign in to comment.