git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Fw: [git-users] git fsck error - duplicate file entries - different then existing stackoverflow scenarios

From
KKKonstantin Khomoutov <kostix+git@007spb.ru>
Date
Nov 12, 2015, 11:02 UTC
Message-ID
<20151112140210.ef05a31c401dd49992e9674e@domain007.com>

A user recently asked an interesting question on the git-users list. I think it warrants attentions of a specialists more hard-core than we're there over at git-users.

So I'd like to solicit help if those knowledgeable, if possible.
Begin forwarded message:
Date: Wed, 11 Nov 2015 14:30:40 -0800 (PST)
From: Wind Over Water <wndovrwtr@g...>
To: Git for human beings <git-users@g...>
Subject: [git-users] git fsck error - duplicate file entries -
different then existing stackoverflow scenarios
Hi all,

I have a repo that is giving a 'git fsck --full' error that seems to be different from the existing questions and answers on stackoverflow on this topic. For example, in our fsck error it is not obvious which file is actually duplicated and how/where. And there is no commit sha involved - apparently only blob and tree sha's. But then finding good documentation on this is challenging.

Might anyone have a pointer as to what to read to help figure out a solution/fix to the below? Or know of a solution outright?

Thanks much in advance!
-sandy
$ git fsck --full
Checking object directories: 100% (256/256), done.

error in tree df79068051fa8702eae7e91635cca7eee1339002: contains duplicate file entries

error in tree c2d09540a3c3f44c42be1dc8a2b0afa73a35f861: contains duplicate file entries

Checking objects: 100% (623704/623704), done.
Checking connectivity: 623532, done.
dangling commit 4d1402c8c74c9f4de6172d7dbd5a14c41683c9e8
$ git ls-tree df79068051fa8702eae7e91635cca7eee1339002
100644 blob 14d6d1a6a2f4a7db4e410583c2893d24cb587766 build.gradle
120000 blob cd70e37500a35663957cf60f011f81703be5d032 msrc
040000 tree 658c892e15fbe0d3ea6b8490d9d54c5f2e658fc9 msrc
100644 blob f623819c94a08252298220871ac0ba1118372e59 pom.xml
100644 blob 9223cc2fddb138f691312c1ea2656b9dc17612d2 settings.gradle
040000 tree c3bac1d92722bdee9588a27747b164baa275201f src
$ git ls-tree c2d09540a3c3f44c42be1dc8a2b0afa73a35f861
100644 blob 14d6d1a6a2f4a7db4e410583c2893d24cb587766 build.gradle
120000 blob cd70e37500a35663957cf60f011f81703be5d032 msrc
040000 tree 658c892e15fbe0d3ea6b8490d9d54c5f2e658fc9 msrc
100644 blob f623819c94a08252298220871ac0ba1118372e59 pom.xml
100644 blob 9223cc2fddb138f691312c1ea2656b9dc17612d2 settings.gradle
040000 tree a5aa6758a25fee779cbb8c9717d744297071ea79 src
$ git show cd70e37500a35663957cf60f011f81703be5d032
src/main/java/com/foo/bar/baz/common/
$ git show 658c892e15fbe0d3ea6b8490d9d54c5f2e658fc9
tree 658c892e15fbe0d3ea6b8490d9d54c5f2e658fc9
BillingAggregator.java
BillingDataThriftAdapter.java
[...]
MetricsProcessor.java
Next: Jeff King
Message 1 of 2 in “Fw: [git-users] git fsck error - duplicate file entries - different then existing stackoverflow scenarios”
  1. Konstantin KhomoutovNov 12, 2015
  2. Jeff KingNov 13, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.