Home > Net >  Git clone trying to treat a file like it's a directory?
Git clone trying to treat a file like it's a directory?

Time:11-16

I'm trying to clone a git repository that we are hosting on a local Ubuntu server from within Visual Studio 2019. I am able to clone other repositories from the same server but i'm getting an error with this one in particular and it makes no sense. Might be a bug, might be a configuration problem.

Here's the error log (paths edited for security reasons):

Cloning into 'C:\Users\my_username\Documents\Projects\ProjectName'...
Warning: error opening directory '\\GitServer\Repo\ProjectName/objects/incoming-a01148/47/c4f1223ef91fff4cf45f549beff2fff5656fad/': Function not implemented
Error encountered while cloning the remote repository: Git failed with a fatal error.
failed to iterate over '\\GitServer\Repo\ProjectName/objects/'

What makes no sense to me is that ".../objects/incoming-a01148/47/c4f1223ef91fff4cf45f549beff2fff5656fad" is a file and it looks like it's trying to iterate over it as if it's a directory?

CodePudding user response:

Using file://GitServer/Repo/ProjectName instead of \\GitServer\Repo\ProjectName in the clone process seems to have resolved the problem.

  • Related