Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-19623

Old versions of git fail with error: Missing value for 'credential.helper'

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 6.3.2
    • 6.3.1
    • Repository (Git)
    • None

    Description

      Summary

      Git commands from Bamboo fail with error: Missing value for credential.helper

      Steps to Reproduce

      1. Install older version of Git (<= 2.0) on the Bamboo Server
      2. Enable automatic branch detection
      3. 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

          Activity

            People

              pbruski Przemek Bruski
              pbruski Przemek Bruski
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: