title: Error in tree: contains duplicate file entries
body: <p>Having an issue moving an existing repo to another origin where it's claiming a tree has duplicate file entries.</p>
  
  <p><code>git fsck --full 
  Checking object directories: 100% (256/256), done. 
  error in tree 4ef325894daeb3a7eeaba4cb7b40b43844f2974c: duplicateEntries: contains duplicate file entries 
  Checking objects: 100% (25808/25808), done.</code></p>
  
  <p>When I run <code>git show 4ef325894daeb3a7eeaba4cb7b40b43844f2974c</code> on the hash for the tree it's showing two directories.</p>
  
  <pre><code>Controllers/   
  Controllers/
  </code></pre>
  
  <p>I've tried making a new tree to replace the broken one but the issue still persists, it could be that I'm doing it on the wrong tree but I'm not sure as there are two trees.</p>
  
  <p><code>git ls-tree 4ef325894daeb3a7eeaba4cb7b40b43844f2974c
  040000 tree fc9af05207cd34539b6b0fe81ce7a3f1370d4750    Controllers
  040000 tree fc9af05207cd34539b6b0fe81ce7a3f1370d4750    Controllers
  </code></p>
  
  <p><img src="https://i.stack.imgur.com/BoKGA.png" alt="Example of trees"></p>