VMware Communities
skymoo
Contributor
Contributor

Unable to clone git repository in shared folder, Mac OS X 10.9 Host, Mac OS X 10.6 Guest with Fusion 5

I'm using Fusion 5.0.4, waiting for purchasing to approve the update to Fusion 6, on Mac OS X 10.9 and am running a Mac OS X Server 10.6 guest that has a shared folder to a directory on the host. In this directory I am trying to clone a git repository, this fails with the following error:

$ git clone user@host:/path/to/git/repo.git

fatal: could not create work tree dir 'repo'.: Input/output error

$

The Shared Folder has read/write permissions, and the guest OS agrees:

$ ls -la

total 6

drwxr-xr-x  1 ram  staff  102 May  7 17:13 .

drwxr-xr-x  1 ram  staff  136 May  7 15:03 ..

drwxr-xr-x  1 ram  staff   68 May  7 17:13 repo

$

as you can see the clone command creates a directory 'repo', which is empty.

Any ideas why I can't clone a repository within this shared folder?

Tags (1)
Reply
0 Kudos
1 Reply
sethgregory
Contributor
Contributor

I am having this exact issue on VMware Fusion 7.1.1 Pro.  (OSX 10.10.2 guest on an OSX 10.10.2 host.)

Have shared out my top-level directory with all of my code repositories from the host, and can neither use existing repositories nor create new ones.

Trying to add a file to an existing repo from guest:

error: bad index file sha1 signature

fatal: index file corrupt

Trying to add a file to a new repo from guest:

error: insufficient permission for adding an object to repository database .git/objects

error: blah: failed to insert into database

error: unable to index file blah

fatal: adding files failed

Trying to clone a remote repo from guest:

fatal: could not create work tree dir 'github-repo'.: Input/output error

It would definitely seem that there is something going on with the shared filesystem that is wreaking havoc on file permissions as far as git is concerned.  Important to note that if I do the exact same thing with an Ubuntu guest, I don't have any problems.

Reply
0 Kudos