Git has a limit of 4096 characters for a filename, except on windows when git is compiled with msys. It uses an older version of the windows api and there's a limit of 260 characters for a filename.
So as far as I understand this, it's a limitation of msys and not of git. You can read the details here: https://github.com/msysgit/git/pull/110