Hello all,
Yes, that is the idea. The patch as stop-gap measure, and then trying to understand the real cause of the problem and correcting git-add-thorn.pl.
I do not think that Mac OS allows hard links to directories for regular users. With these, one can create directory structures that are not trees, which would break many Unix expectations; in particular, one can create directory structures disconnected from the root directory and hence unreachable. Root can call the "link" syscall (maybe even from the "ln" command, possibly with a special option) to do this, but it's highly discouraged.
If this issue is just that Mac OS allows hard links for directories then simply changing link() to symlink() for directories: http://perldoc.perl.org/functions/symlink.html should fix the issue, shouldn't it?
Something like:
if(-d $object) { symlink(...) } else { link(...) }
Yours, Roland