Mendix + GIT only one branch at a time in local.

0
Mendix version 9.24.5   We have migrated the project from SVN to GIT, to get ready for Mendix 10. But after migrated to GIT Mendix studio pro not allowing us to download multiple branches in local, it is allowing one branch at a time. I mean one project in your local with mainline or branch if you need another branch you need to delete other one. Even we changed the directory its same.   LibGit2Sharp.NameConflictException: 'D:/Mendix_Workspace/XYZ_Release' exists and is not an empty directory    at LibGit2Sharp.Core.Ensure.HandleError(Int32 result) in /_/LibGit2Sharp/Core/Ensure.cs:line 154    at LibGit2Sharp.Core.Proxy.git_clone(String url, String workdir, GitCloneOptions& opts) in /_/LibGit2Sharp/Core/Proxy.cs:line 278    at LibGit2Sharp.Repository.Clone(String sourceUrl, String workdirPath, CloneOptions options, ProxyOptions proxy) in /_/LibGit2Sharp/Repository.cs:line 854    at Mendix.Modeler.VersionControl.Actions.Git.Requests.Clone.GitCloneLibGitRequest.ExecuteRequest() in Mendix.Modeler.VersionControl\Actions\Git\Requests\Clone\GitCloneLibGitRequest.cs:line 50   LibGit2Sharp.NameConflictException: 'C:/Mendix_Workspace/XYZ_Release' exists and is not an empty directory    at LibGit2Sharp.Core.Ensure.HandleError(Int32 result) in /_/LibGit2Sharp/Core/Ensure.cs:line 154    at LibGit2Sharp.Core.Proxy.git_clone(String url, String workdir, GitCloneOptions& opts) in /_/LibGit2Sharp/Core/Proxy.cs:line 278    at LibGit2Sharp.Repository.Clone(String sourceUrl, String workdirPath, CloneOptions options, ProxyOptions proxy) in /_/LibGit2Sharp/Repository.cs:line 854    at Mendix.Modeler.VersionControl.Actions.Git.Requests.Clone.GitCloneLibGitRequest.ExecuteRequest() in Mendix.Modeler.VersionControl\Actions\Git\Requests\Clone\GitCloneLibGitRequest.cs:line 50  
asked
2 answers
0

I am having this same issue but with version 10.0.0

answered
0

Hey Vijayakumar,

Have multiple branchs locally should not be an issue. Did you try to download the second branch to a new empty folder outside the folder of the first branch?

 

You can try to clone the repository using the following console command:

git clone -b <branch_name> <gitURL>

 

The Git URL is available on the Team serverimagem.png

 

Another possible cause for this issue, could be related with the path length. It should have at max 260 characters.

So be carefull with your folder location.

 

If this answer helped, mark as "accept" :)

 

Best Regards,

Ricardo Pereira

answered