Random failure to detect new commit with 'credential-' is not a git command error

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Problem

Sometimes, Bamboo will fail to detect changes with the following appears in the atlassian-bamboo.log

1 2 3 4 2018-12-11 13:17:01,105 INFO [9-BAM::PlanExec:pool-15-thread-2] [DefaultErrorHandler] Recording an error: Unable to detect changes : PROJ-PLAN : command [/usr/bin/git -c credential.helper= -c 'credential.helper=store --file=/atlassian-bamboo-6.7.1/temp/gitCredentials6508400551221807946.tmp' ls-remote REPO_URL] failed with code 128. Working directory was [/atlassian-bamboo-6.7.1/temp]., stderr: git: 'credential-' is not a git command. See 'git --help'. Did you mean this? credential

Cause

Bug in certain version of Git client.

Resolution

Upgrade Git client to the latest version

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.