Is it possible to set conf.autocrlf=true when cloning repository from Github in Bamboo?


Is there a way to force conf.autocrlf=true when using Github? There doesn't seem to be any configuration options for this in Bamboo's Github connector.

It seems that this is either so easy that nobody needs to ask, or it's not possible.



2 answers

1 accepted

If you configure a Native Git capability for all agents you want to use the Github connector on to checkout source, you can set conf.autocrlf the normal way using git config (As long as you run git config manually on all machines that have Bamboo agents).

Thanks! I will try this.


James, actually this is not as bamboo working, but only as it should be.

According to, autocrlf will be always false.


Can you give some hints as to how to recreate the wrong behavior? I do not have Bamboo 4.0.1 on hand (instead I've tested this on 4.4.x), but it seems to me that if you set "git config --global --add conf.autocrlf true" on the agents (or Bamboo server if the Local Agents are involved), then the git spawned from Bamboo will use autoctlf=true config as expected. So... May I ask what are you trying to achieve and why it fails?


On bamboo 4.0.1, if you set "git config --global core.autocrlf true" on agent, and thet use Sourcecode checkout task in bamboo, you will see in .git/.gitconfig file in clonde repository:


repositoryformatversion = 0

filemode = false

logallrefupdates = true

autocrlf = false

Bamboo 4.0.1

  • Set git config --global core.autocrlf true on remot agent
  • Clone repo using Source Checkout task in bamboo (Git capability is set properly on agent)
  • Navigate to checkout folder on agent
  • Open .git\config file
        repositoryformatversion = 0
        filemode = false
        logallrefupdates = true
        autocrlf = false

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,498 views 0 5
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you