I have added a pipeline and to that pipeline added as a Git material, and checked the connection which was ok.
When building I get this error:
java.lang.RuntimeException: Error performing command: --- Command ---
git rev-parse --abbrev-ref HEAD
--- Environment ---
{}
--- INPUT ----
--OUTPUT ---
HEAD
--- ERROR ---
STDERR: fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
STDERR: Use '--' to separate paths from revisions, like this:
STDERR: 'git <command> [<revision>...] -- [<file>...]'
---
I've tried Go with other Git repositories, they all worked, this is the only one that is showing this error