(ctx context.Context, args ...string)
| 693 | } |
| 694 | |
| 695 | func (c *Client) revParse(ctx context.Context, args ...string) ([]byte, error) { |
| 696 | args = append([]string{"rev-parse"}, args...) |
| 697 | cmd, err := c.Command(ctx, args...) |
| 698 | if err != nil { |
| 699 | return nil, err |
| 700 | } |
| 701 | return cmd.Output() |
| 702 | } |
| 703 | |
| 704 | func (c *Client) IsLocalGitRepo(ctx context.Context) (bool, error) { |
| 705 | _, err := c.GitDir(ctx) |
no test coverage detected