MCPcopy Create free account
hub / github.com/entireio/git-sync / Replicate

Method Replicate

client.go:79–82  ·  view source on GitHub ↗

Replicate executes source-authoritative relay-only replication between two remotes.

(ctx context.Context, req SyncRequest)

Source from the content-addressed store, hash-verified

77
78// Replicate executes source-authoritative relay-only replication between two remotes.
79func (c *Client) Replicate(ctx context.Context, req SyncRequest) (SyncResult, error) {
80 req.Policy.Mode = ModeReplicate
81 return c.Sync(ctx, req)
82}
83
84func (c *Client) buildProbeConfig(ctx context.Context, req ProbeRequest) (internalbridge.Config, error) {
85 sourceAuth, err := c.authFor(ctx, req.Source, SourceRole)

Callers 1

newSyncLikeCmdFunction · 0.45

Calls 1

SyncMethod · 0.95

Tested by

no test coverage detected