(ctx context.Context, name string)
| 817 | } |
| 818 | |
| 819 | func (c *Client) UnsetRemoteResolution(ctx context.Context, name string) error { |
| 820 | args := []string{"config", "--unset", fmt.Sprintf("remote.%s.gh-resolved", name)} |
| 821 | cmd, err := c.Command(ctx, args...) |
| 822 | if err != nil { |
| 823 | return err |
| 824 | } |
| 825 | _, err = cmd.Output() |
| 826 | if err != nil { |
| 827 | return err |
| 828 | } |
| 829 | return nil |
| 830 | } |
| 831 | |
| 832 | func (c *Client) SetRemoteBranches(ctx context.Context, remote string, refspec string) error { |
| 833 | args := []string{"remote", "set-branches", remote, refspec} |