(ctx context.Context, remote string, refspec string)
| 828 | } |
| 829 | |
| 830 | func (c *Client) SetRemoteBranches(ctx context.Context, remote string, refspec string) error { |
| 831 | args := []string{"remote", "set-branches", remote, refspec} |
| 832 | cmd, err := c.Command(ctx, args...) |
| 833 | if err != nil { |
| 834 | return err |
| 835 | } |
| 836 | _, err = cmd.Output() |
| 837 | if err != nil { |
| 838 | return err |
| 839 | } |
| 840 | return nil |
| 841 | } |
| 842 | |
| 843 | func (c *Client) AddRemote(ctx context.Context, name, urlStr string, trackingBranches []string) (*Remote, error) { |
| 844 | args := []string{"remote", "add"} |