I have a folder on a Windows Server 2019 build agent, we'll call Machine A. I create a symbolic link on NTFS in that folder that points to a folder on another remote machine, we'll call Machine B.
When checking out the git repository, I check it out and specify the symbolic link as the folder I'd like to check it out into (which is empty on Machine B).
However, the error I get is,
fatal: failed to stat <insert symbolic link path here> Permission denied
Git then proceeds to delete the folder, and check it out to the folder non-linked.
Since Git obviously has permissions to write in the working folder on Machine A, my first thoughts were to use Powershell, grab the ACL of the working folder on Machine A, and overwrite the symbolic links ACL with working folder's ACL.
That didn't work, any ideas?