MCPcopy
hub / github.com/dagger/container-use / gitCommit

Function gitCommit

environment/integration/helpers.go:146–152  ·  view source on GitHub ↗
(t *testing.T, repoDir, message string)

Source from the content-addressed store, hash-verified

144}
145
146func gitCommit(t *testing.T, repoDir, message string) {
147 ctx := context.Background()
148 _, err := repository.RunGitCommand(ctx, repoDir, "add", ".")
149 require.NoError(t, err, "Failed to stage files")
150 _, err = repository.RunGitCommand(ctx, repoDir, "commit", "-m", message)
151 require.NoError(t, err, "Failed to commit")
152}
153
154// initializeDaggerOnce initializes Dagger client once for all tests
155func initializeDaggerOnce(t *testing.T) {

Callers 3

helpers.goFile · 0.85
WriteFileInSourceRepoMethod · 0.85

Calls 1

RunGitCommandFunction · 0.92

Tested by 1