title: Adding Git repository to Perforce depot
body: <p>I'm trying to add a checked out Git repository to my Perforce depot. Don't get me wrong: no integration between Git and Perforce, I just want to put an external Git repo there so that I can access it like a Git repo and use pull/push and other Git actions as usual.</p>
  
  <p>Inside the .git folder, I submitted everything except TortoiseGit-specific files and the hooks folder.</p>
  
  <p>However, when I download that Git repo to a Perforce workspace on another PC, <code>git status</code> tells me <code>'atal: Reference has invalid format: 'refs/remotes/origin/master</code>. All four files called master look okay, the file <code>.git\refs\remotes\origin\master</code> for instance contains a commit hash followed by a Windows newline.</p>
  
  <p>What am I doing wrong?</p>