(cmd *cobra.Command, ep *gitsync.Endpoint)
| 11 | ) |
| 12 | |
| 13 | func 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 | |
| 20 | func addTargetEndpoint(cmd *cobra.Command, ep *gitsync.Endpoint) { |
| 21 | cmd.Flags().StringVar(&ep.URL, "target-url", "", "target repository URL") |
no test coverage detected