cake-contrib / Cake_Git

Cake AddIn that extends Cake with Git features using LibGit2 and LibGit2Sharp
https://cakebuild.net/extensions/cake-git
Other
39 stars 64 forks source link

Error: repository path '...' is not owned by current user #190

Open saskathex opened 8 months ago

saskathex commented 8 months ago

We tried upgrading from cake.git 3.0 to cake.git 4 and get the following error on calling GitBranchCurrent

var branch = GitBranchCurrent (thisRepo);

Error: repository path '...' is not owned by current user

Environment:

I know in the newer libgit2 have some additional security policies. That is why we added the safe directory a couple of months inside the job script.

Is there a way to tell the cake.git embedded git library that the current directory is "safe"?