(ctx context.Context, args ...string)
| 755 | } |
| 756 | |
| 757 | func (c *Client) revParse(ctx context.Context, args ...string) ([]byte, error) { |
| 758 | args = append([]string{"rev-parse"}, args...) |
| 759 | cmd, err := c.Command(ctx, args...) |
| 760 | if err != nil { |
| 761 | return nil, err |
| 762 | } |
| 763 | return cmd.Output() |
| 764 | } |
| 765 | |
| 766 | func (c *Client) IsLocalGitRepo(ctx context.Context) (bool, error) { |
| 767 | _, err := c.GitDir(ctx) |
no test coverage detected