Clone git repo to a Mac OS shared folder from Windows

181 views
Skip to first unread message

Qing Zhang

unread,
Aug 6, 2021, 2:41:49 AM8/6/21
to git-for-windows
Hi all,

I am currently on a Windows PC and am not able to clone a git repository in a shared folder on an iMac over LAN.

Error log:
 
Cloning into 'crn-zuchebao-android'...
remote: Enumerating objects: 1145, done.
remote: Counting objects: 100% (1145/1145), done.
remote: Compressing objects: 100% (544/544), done.
Receiving objremote: Total 2074 (delta 507), reused 970 (delta 366), pack-reused 929
Receiving objects: 100% (2074/2074), 19.88 MiB | 9.69 MiB/s, done.
Resolving deltas: 100% (845/845), done.
error: unable to write file //zhangqingdeimac.local/“张庆”的公共文件夹/StudioProjects/crn-zuchebao-android/.git/objects/pack/pack-4b99fe0db29517ff323d2bb57920a631b0f35ca6.pack: Permission denied
fatal: cannot store pack file
fatal: fetch-pack: invalid index-pack output

Do let me know if anyone can help here. Any help is much appreciated.

Konstantin Khomoutov

unread,
Aug 15, 2021, 8:38:17 AM8/15/21
to Qing Zhang, git-for-windows
What happens if you do - in the same shell window:

setlocal enableextensions
md //zhangqingdeimac.local/“张庆”的公共文件夹/StudioProjects/crn-zuchebao-android/.git/objects/pack/

and then, if that succeeds,

echo "" >//zhangqingdeimac.local/“张庆”的公共文件夹/StudioProjects/crn-zuchebao-android/.git/objects/pack/pack-4b99fe0db29517ff323d2bb57920a631b0f35ca6.pack

?

Does it work or fails?

Also: do you have any anti-virus software actively running? This very often
was the case of "strange" permission problems.

Qing Zhang

unread,
Aug 23, 2021, 7:46:59 AM8/23/21
to git-for-windows
I didn't manage to make the directory with  md //zhangqingdeimac.local/“张庆”的公共文件夹/StudioProjects/crn-zuchebao-android/.git/objects/pack/.

The parent directory "crn-zuchebao-android" was not created after the git-clone failure (the error log I posted in my last email).

 I do have an anti-virus software on my windows PC but not on the iMac. Unfortunately that software cannot be uninstalled since it was installed by the IT department : (
Reply all
Reply to author
Forward
0 new messages