MCPcopy Create free account
hub / github.com/docker/secrets-engine / gitCommit

Function gitCommit

x/release/command.go:285–291  ·  view source on GitHub ↗
(ctx context.Context, commit string)

Source from the content-addressed store, hash-verified

283}
284
285func gitCommit(ctx context.Context, commit string) error {
286 cmd := exec.CommandContext(ctx, "git", "commit", "-am", commit)
287 if out, err := cmd.CombinedOutput(); err != nil {
288 return fmt.Errorf("git commit (%s): %s", err, string(out))
289 }
290 return nil
291}
292
293// verifyReleaseRef ensures HEAD is exactly the tip of the remote default branch
294// before any tags are created.

Callers 1

GitCommitMethod · 0.85

Calls 1

ErrorfMethod · 0.65

Tested by

no test coverage detected