Bamboo's bundled jgit does not treat symbolic links correctly
Asked by Don McCasland:

I am trying to add more to the forum thread about this, but when I use the 'reply' button your web interface takes me here, which is more than a little frustrating.  
So, I updated to bamboo 3.2.2 hoping this problem would go away with a newer version of jgit, but it has not. We have mac os build projects we would like to bring under control with bamboo, and right now this _serious_ functionality issue is keeping us from moving forward.  

|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| |---|---|---|---| | Hey folks, I'm rolling out a new instance of Bamboo 3.1 using a git repository. When I clone the repo using my local git client, symbolic links are checked out correctly, but when Bamboo checks them out the files only contain the name of the files they should be linked to. I notice that the version of the git plugin is 1.5.1. I don't know if that cooresponds to the actual version of git it is based on or what. Can anyone shed some light on this for me? |||| |

|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| |-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | |-----------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------| | [Piotr Stefaniak...](http://forums.atlassian.com/profile.jspa?userID=19012 "Piotr Stefaniak [Atlassian]") | ![](http://forums.atlassian.com/images/status/atlassian_16.png "Atlassian Employee") | <br /> Posts: 21 Registered: 02/01/10 | | |---|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| |   | {#257377010}Re: Git plugin not treating symbolic links correctly Posted: May 25, 2011 5:11 AM [![global.in_response_to.tooltip](http://forums.atlassian.com/images/up-10x10.gif "in response to: Don McCasland")](http://forums.atlassian.com/message.jspa?messageID=257376989#257376989 " global.in_response_to.tooltip") in response to: [Don McCasland](http://forums.atlassian.com/message.jspa?messageID=257376989#257376989 " global.go_to_message") | |------------------------------------------------------------------------------|---------| | ![](http://forums.atlassian.com/images/answer-helpful-16x16.gif " q.points") | Helpful | | |---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------| | [![Click to report abuse...](http://forums.atlassian.com/images/warn-16x16.gif)](http://forums.atlassian.com/abuse!default.jspa?messageID=257377010 "Click to report abuse...") |   | [![Click to reply to this thread](http://forums.atlassian.com/images/reply-16x16.gif)](http://forums.atlassian.com/post!reply.jspa?messageID=257377010 "Click to reply to this thread") | [Reply](http://forums.atlassian.com/post!reply.jspa?messageID=257377010 "Click to reply to this thread") | | | Hello Don, The Bamboo Git Plugin version (i.e. 1.5.1) doesn't correspond to any of the git scm version. Internally Bamboo Git Plugin relies on the jGit library (which is a pure-java implementation of git scm). Apparently the jGit doesn't handle symbolic links well (or at least I'm guessing so). I've raised an issue <https://jira.atlassian.com/browse/BAM-8899> on Bamboo tracker so the Bamboo team can investigate what's the root of the problem and schedule a fix. Is that helpful? regards, Piotr Stefaniak                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |||| |

|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| |--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | |-----------------------------------------------------------------------------------------|---| | [Don McCasland](http://forums.atlassian.com/profile.jspa?userID=169758 "Don McCasland") |   | <br /> Posts: 2 Registered: 05/25/11 | | |---|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| |   | {#257377073}Re: Git plugin not treating symbolic links correctly Posted: May 25, 2011 10:52 AM [![global.in_response_to.tooltip](http://forums.atlassian.com/images/up-10x10.gif "in response to: Piotr Stefaniak...")](http://forums.atlassian.com/message.jspa?messageID=257377010#257377010 " global.in_response_to.tooltip") in response to: [Piotr Stefaniak...](http://forums.atlassian.com/message.jspa?messageID=257377010#257377010 " global.go_to_message") |   | |---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------| | [![Click to report abuse...](http://forums.atlassian.com/images/warn-16x16.gif)](http://forums.atlassian.com/abuse!default.jspa?messageID=257377073 "Click to report abuse...") |   | [![Click to reply to this thread](http://forums.atlassian.com/images/reply-16x16.gif)](http://forums.atlassian.com/post!reply.jspa?messageID=257377073 "Click to reply to this thread") | [Reply](http://forums.atlassian.com/post!reply.jspa?messageID=257377073 "Click to reply to this thread") | | | That is helpful, thanks Piotr! I will comment the bug with anything new I find during my investigation.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |||| |

|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| |------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | |-------------------------------------------------------------------------------------------|---| | [Alex Simenduev](http://forums.atlassian.com/profile.jspa?userID=170326 "Alex Simenduev") |   | <br /> Posts: 1 Registered: 05/26/11 | | |---|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| |   | {#257377241}Re: Git plugin not treating symbolic links correctly Posted: May 26, 2011 12:47 PM [![global.in_response_to.tooltip](http://forums.atlassian.com/images/up-10x10.gif "in response to: Don McCasland")](http://forums.atlassian.com/message.jspa?messageID=257376989#257376989 " global.in_response_to.tooltip") in response to: [Don McCasland](http://forums.atlassian.com/message.jspa?messageID=257376989#257376989 " global.go_to_message") |   | |---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------| | [![Click to report abuse...](http://forums.atlassian.com/images/warn-16x16.gif)](http://forums.atlassian.com/abuse!default.jspa?messageID=257377241 "Click to report abuse...") |   | [![Click to reply to this thread](http://forums.atlassian.com/images/reply-16x16.gif)](http://forums.atlassian.com/post!reply.jspa?messageID=257377241 "Click to reply to this thread") | [Reply](http://forums.atlassian.com/post!reply.jspa?messageID=257377241 "Click to reply to this thread") | | | You can add 'git reset --hard' in your build script, this will fix the symbolic links issue. Of course in order this workaround to work you must have git installed on your agent machine Edited by: Alex Simenduev on May 26, 2011 12:47 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |||| |


Answers:
author: James Dumay
body: Hi Don,

Bamboo 3.4 is being released in the next week that contains support for using the native Git executable instead of JGit (which will handle symbolic links correctly.

Thanks

James


Tags: git

symbolic-link