Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Testing Connection to a Git linked repository fails after upgrade

I have a very simply repository setup for testing but after a upgrade from 5.14 -> 6.8.1. the Test Connection returns an error.  Below is the error from the logs

Failed to connect to repository (type: Git, location:, time: 22.99 ms, errors: [Unknown option: -c
usage: git [--version] [--exec-path[=GIT_EXEC_PATH]] [--html-path]
[-p|--paginate|--no-pager] [--no-replace-objects]
[--bare] [--git-dir=GIT_DIR] [--work-tree=GIT_WORK_TREE]
[--help] COMMAND [ARGS]])

The Git repository has no authentication and it points to the master branch.  The error message seems to imply that the function that get calls is not working correctly.

1 comment

Hi Marshall,

Welcome to the Atlassian Community.

Check what version of Git you have on your Bamboo server, older versions of Git do not have the -c option on the clone command.

We are running Bamboo on RHEL 6.10 and when i use yum to install the latest, i get the message that the latest version is already installed.

$ yum install git-core

Package git-1.7.1-9.el6_9.x86_64 already installed and latest version

Mikael Sandberg Community Leader Apr 05, 2019

You need to download a later version, 1.7.1 does not have the -c option. The latest Git version is 2.21.


Log in or Sign up to comment
Community showcase
Published in Bamboo

Bamboo Data Center on Kubernetes

Hi, If you are running self-managed environments and looking to adopt modern infrastructure, Bamboo Data Center can now be deployed in a Kubernetes cluster. By leveraging Kubernetes, you can easily...

954 views 3 8
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you