MCPcopy Create free account
hub / github.com/cloudflare/artifact-fs / ValidateAmbientRemote

Method ValidateAmbientRemote

internal/gitstore/gitstore.go:164–176  ·  view source on GitHub ↗
(repo model.RepoConfig)

Source from the content-addressed store, hash-verified

162
163const (
164 maxGitErrorBytes = 16 << 10
165 gitErrorScanOverlap = 128
166 gitErrorTruncatedLabel = "[git stderr truncated]"
167)
168
169type boundedGitError struct {
170 buf bytes.Buffer
171 limit int
172 truncated bool
173 scanTail string
174 sawPermanent bool
175 sawTransient bool
176}
177
178func (b *boundedGitError) Write(p []byte) (int, error) {
179 n := len(p)

Callers 2

runPrepareMethod · 0.80

Calls 1

credentialEnvFunction · 0.85

Tested by

no test coverage detected