The command you used is almost right, but it has a slight syntax mistake. You need to apply the safe.directory
setting to the main repository directory, not just the .git
.
git -c safe.directory=/path/to/repo/owned/by/other clone /path/to/repo/owned/by/other ./here