(ctx context.Context)
| 762 | } |
| 763 | |
| 764 | func (c *Client) IsLocalGitRepo(ctx context.Context) (bool, error) { |
| 765 | _, err := c.GitDir(ctx) |
| 766 | if err != nil { |
| 767 | var execError errWithExitCode |
| 768 | if errors.As(err, &execError) && execError.ExitCode() == 128 { |
| 769 | return false, nil |
| 770 | } |
| 771 | return false, err |
| 772 | } |
| 773 | return true, nil |
| 774 | } |
| 775 | |
| 776 | // RemoteURL returns the fetch URL configured for the named remote. |
| 777 | func (c *Client) RemoteURL(ctx context.Context, name string) (string, error) { |
no test coverage detected