(ctx context.Context)
| 702 | } |
| 703 | |
| 704 | func (c *Client) IsLocalGitRepo(ctx context.Context) (bool, error) { |
| 705 | _, err := c.GitDir(ctx) |
| 706 | if err != nil { |
| 707 | var execError errWithExitCode |
| 708 | if errors.As(err, &execError) && execError.ExitCode() == 128 { |
| 709 | return false, nil |
| 710 | } |
| 711 | return false, err |
| 712 | } |
| 713 | return true, nil |
| 714 | } |
| 715 | |
| 716 | // RemoteURL returns the fetch URL configured for the named remote. |
| 717 | func (c *Client) RemoteURL(ctx context.Context, name string) (string, error) { |
no test coverage detected