(ctx context.Context, name string)
| 755 | } |
| 756 | |
| 757 | func (c *Client) UnsetRemoteResolution(ctx context.Context, name string) error { |
| 758 | args := []string{"config", "--unset", fmt.Sprintf("remote.%s.gh-resolved", name)} |
| 759 | cmd, err := c.Command(ctx, args...) |
| 760 | if err != nil { |
| 761 | return err |
| 762 | } |
| 763 | _, err = cmd.Output() |
| 764 | if err != nil { |
| 765 | return err |
| 766 | } |
| 767 | return nil |
| 768 | } |
| 769 | |
| 770 | func (c *Client) SetRemoteBranches(ctx context.Context, remote string, refspec string) error { |
| 771 | args := []string{"remote", "set-branches", remote, refspec} |