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

Function addSourceEndpoint

cmd/git-sync/flags.go:13–18  ·  view source on GitHub ↗
(cmd *cobra.Command, ep *gitsync.Endpoint)

Source from the content-addressed store, hash-verified

11)
12
13func addSourceEndpoint(cmd *cobra.Command, ep *gitsync.Endpoint) {
14 cmd.Flags().StringVar(&ep.URL, "source-url", "", "source repository URL")
15 cmd.Flags().BoolVar(&ep.FollowInfoRefsRedirect, "source-follow-info-refs-redirect",
16 envBool("GITSYNC_SOURCE_FOLLOW_INFO_REFS_REDIRECT"),
17 "send follow-up source RPCs to the final /info/refs redirect host")
18}
19
20func addTargetEndpoint(cmd *cobra.Command, ep *gitsync.Endpoint) {
21 cmd.Flags().StringVar(&ep.URL, "target-url", "", "target repository URL")

Callers 4

newSyncLikeCmdFunction · 0.85
newProbeCmdFunction · 0.85
newFetchCmdFunction · 0.85
newBootstrapCmdFunction · 0.85

Calls 1

envBoolFunction · 0.85

Tested by

no test coverage detected