Just change the file type of everything under the .git directory to binary. This will prevent perforce from modifying the line endings in .git.
.git
binary
p4 reopen -t binary .git/...