Details
-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
4.1
-
3
-
Severity 3 - Minor
-
3
-
Description
Currently, if the source of the git project has the autocrlf = true parameter, this will not be reflected after it was check out by Bamboo. Steps to replicate the problem:
- Create a git repository The configuration is shown as follow:
Global configuration
.gitconfig[user] name = admin email = admin@yahoo.com
Git repository configuration
.git/config[core] repositoryformatversion = 0 filemode = false bare = false logallrefupdates = true symlinks = false ignorecase = true hideDotFiles = dotGitOnly autocrlf = true
- Add items to the newly created git repository and commit it
- Create a new plan in Bamboo and configure the repository point to the newly created git repository
- Make sure the job run the repository check out task
- Now check .git/config file via <Bamboo home>\xml-data\build-dir\<project>
<plan><jobname> - Open the .git/config and you might find that the following autocrlf = false:
[core] repositoryformatversion = 0 filemode = false logallrefupdates = true autocrlf = false
However, the problem does not exist if the source is checkout using the script task with the following command:
git clone file:///C:/git/
The following is the result of the .git/config via _<Bamboo home>\xml-data\build-dir\<project><plan><jobname>:
[core] repositoryformatversion = 0 filemode = false bare = false logallrefupdates = true symlinks = false ignorecase = true hideDotFiles = dotGitOnly [remote "origin"] fetch = +refs/heads/*:refs/remotes/origin/* url = file:///C:/git/ [branch "master"] remote = origin merge = refs/heads/master
As above the parameter autocrlf is not presented.
Attachments
Issue Links
- is duplicated by
-
BAM-11832 Git repository init doesn't respect global core.autocrlf setting
- Closed
- links to