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