On Sun Dec 04 11:45:02 2011, daniel@ruoso.com wrote:
Show quoted text> I might be wrong at this, but i think -f uses "stat" instead of
> "lstat", which will not follow symlinks. If that is not the case, then
> you can always use the explicit "stat" command instead of the
> operator.
>
It's true that a symlink pointing to a directory will also cause
problems.
Anyway, I've written tests to try various cases of symlinks,
and using -e && !-d was enough to make the tests pass.
Until the next version (1.24) is released, you can check the github
repository, or simply apply a patch to the effect of:
- ($git) = grep {-e}
+ ($git) = grep { -e && !-d }
to lib/Git/Repository/Command.pm.
Please let me know if that fixes your issue, and if it doesn't,
please describe a test case that makes this fail.
Thanks,
-- BooK