Git clone: error: chmod on <ntfs mount> failed: Operation not permitted

I'm dual booting fedora/windows 7, and so I have a common storage place between them I've made a small fat partition, mounted from /etc/fstab:

UUID=C37A-2B35 /transfer vfat users,umask=000 1 3

I'm trying to clone a git repository I have on linux to the mount, so I can get the project working on windows:

> git clone ~/myproject/ /transfer/myproject
Cloning into '/transfer/myproject'...
error: chmod on /transfer/myproject/.git/config.lock failed: Operation not permitted
error: chmod on /transfer/myproject/.git/config.lock failed: Operation not permitted
error: chmod on /transfer/myproject/.git/config.lock failed: Operation not permitted
error: chmod on /transfer/myproject/.git/config.lock failed: Operation not permitted
error: chmod on /transfer/myproject/.git/config.lock failed: Operation not permitted
error: chmod on /transfer/myproject/.git/config.lock failed: Operation not permitted
fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

I have full write permissions, although root is the owner, which is why the chmod fails. Can I tell git to not chmod because it doesn't need to?

A workaround is this, which is really stupid and I shouldn't have to do it:

git clone ~/myproject/ /tmp/myproject && mv /tmp/myproject /transfer/

Solution 1:

Here's what worked for me. Change the fstab settings to mount the device as a specific user, as described here. The key options are uid and gid, which are presumably "user id" and "group id" respectively. I set them both to my username, and was able to clone successfully.

Hope this helps.