Fix support for .git git symlinks

By “.git git symlinks” I mean `.git` *files* with content like `gitdir: {path}`.