Details
-
Bug
-
Resolution: Fixed
-
Low
-
6.3.1
-
None
-
Severity 3 - Minor
-
Description
Summary
Git commands from Bamboo fail with error: Missing value for credential.helper
Steps to Reproduce
- Install older version of Git (<= 2.0) on the Bamboo Server
- Enable automatic branch detection
- Push a new branch to a repository
Expected Results
Git commands succeed without error.
Actual Results
The below exception is thrown in the atlassian-bamboo.log file:
2018-01-18 20:27:06,455 ERROR [12-BranchDetectionBackgroundThread:pool-20-thread-3] [BranchDetectionServiceImpl] Repository error while detecting branches for plan PLAN-KEY. command /usr/bin/git -c credential.helper= -c 'credential.helper=store --file=/opt/atlassian/bamboo/current/temp/gitCredentials7109504355414214965.tmp' ls-remote https://bitbucket.org/project/repo.git failed with code 128. Working directory was [/opt/atlassian/bamboo/current/temp]., stderr: error: Missing value for 'credential.helper' fatal: unable to parse command-line config com.atlassian.bamboo.plugins.git.GitCommandException: command /usr/bin/git -c credential.helper= -c 'credential.helper=store --file=/opt/atlassian/bamboo/current/temp/gitCredentials7109504355414214965.tmp' ls-remote https://bitbucket.org/project/repo.git failed with code 128. Working directory was [/opt/atlassian/bamboo/current/temp]., stderr: error: Missing value for 'credential.helper' fatal: unable to parse command-line config at com.atlassian.bamboo.plugins.git.GitCommandProcessor.runCommand(GitCommandProcessor.java:689)
Workaround
- Update Git a version >= 2.0
Attachments
Issue Links
- Testing discovered
-
BDEV-15027 Loading...