When you pull down and build code from your Git host, you get a
FAILED: git -C error.
When you pull down and build code from your Git host, you get the following message:
2017-12-11T15:02:00Z started 'distelli' with pid 19011 Cloning into '/distelli/tasks/d6941-309479/repo'... Unknown option: -C usage: git [--version] [--help] [-c name=value] [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path] [-p|--paginate|--no-pager] [--no-replace-objects] [--bare] [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>] <command> [<args>] FAILED: git -C /distelli/tasks/d6941-309479/repo reset --hard 3bfcfb6914b74fbbd62dac28297694506ffdad25
Version and installation information
Pipelines product: Pipelines for Applications, Pipelines for Containers
Installation type: SaaS, on premises
You are getting a Git version error. The
-C flag, which is used to pull down your code, was added in Git version 1.8.5. When you use Pipelines for Applications or Containers as your build server, by default, a later version of Git is used, which does not have this issue. When you use your own build server, use version 2.7.4 of Git to avoid issues.
Note: We cannot troubleshoot third-party software.
On your build server, check your Git version by running
If you are not using Git version 2.7.4, upgrade Git.