(owner, repo, ref, path string)
| 35 | } |
| 36 | |
| 37 | func (c *Client) refURL(owner, repo, ref, path string) string { |
| 38 | if ref == "" { |
| 39 | return c.url.JoinPath(owner, repo, "HEAD", path).String() |
| 40 | } |
| 41 | return c.url.JoinPath(owner, repo, ref, path).String() |
| 42 | } |
| 43 | |
| 44 | func (c *Client) URLFromOpts(opts *ContentOpts, owner, repo, path string) string { |
| 45 | if opts == nil { |