Linus Torvalds wrote:Thanks for the detailed analysis of the chain of events. It really helps understand the inner-workings of Git. I also tried to track this down after your initial patch, but couldn't find it. The fact that the index is smudged at the time of the second commit, so the third failed, made me look in the wrong place. How about adding a trace for the smudged case, so it's easier to find similar issues in the future? -- =2Emarius =46rom b858610ff4cd42f57a05c815a3e3b43428d67f99 Mon Sep 17 00:00:00 2001 From: Marius Storm-Olsen <mstormo_git@storm-olsen.com> Date: Thu, 23 Aug 2007 22:03:35 +0200 Subject: [PATCH] Add a trace to more easily show that the index has been = smudged. Signed-off-by: Marius Storm-Olsen <mstormo_git@storm-olsen.com> --- read-cache.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/read-cache.c b/read-cache.c index 849e8d6..000451c 100644 --- a/read-cache.c +++ b/read-cache.c @@ -1088,6 +1088,7 @@ static void ce_smudge_racily_clean_entry(struct cac= he_entry *ce) * for "frotz" stays 6 which does not match the filesystem. */ ce->ce_size =3D htonl(0); + trace_printf("trace: index: Index object for '%s' smudged due to being= racily clean\n", ce->name); } } =20 --=20 1.5.3.rc4.mingw.2.3.g3318a-dirty
| Linus Torvalds | Linux 2.6.27-rc8 |
| Bron Gondwana | BUG: mmapfile/writev spurious zero bytes (x86_64/not i386, bisected, reproducable) |
| Jeff Garzik | Virt RNG? |
| Crispin Cowan | AppArmor Security Goal |
git: | |
| walt | [VOTE] git versus mercurial |
| Pavel Roskin | Implementing branch attributes in git config |
| Peter Karlsson | RCS keyword expansion |
| Johannes Schindelin | Re: Empty directories... |
| Christian Weisgerber | Re: libiconv problem |
| Steve Shockley | Re: Real men don't attack straw men |
| Theo de Raadt | Re: Oddly high load average |
| Steve B | Intel Atom and D945GCLF2 |
| Karlin Dodd | VL-bus questions |
| Jim Winstead Jr. | Re: Root Disk/Book Disk Compatibility |
| Joern Rennecke | Use shadow ram? |
| Framstag | ftp-error: bind: Address already in use? |
