It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage
Highlighted

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: https://git.xx.xxx/xxx/SimpleWebSite.git, 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.

Comment

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

Bamboo 7.1 is here and is packed with value!

I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...

318 views 0 6
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