# git-read-tree: fatal: Entry 'Kbuild' not uptodate. Cannot merge.

3 messages from 2006-07-12 to 2006-07-12. Participants: Daniel Drake, Linus Torvalds.
Thread: https://gitlist.dev/t/4865

## Daniel Drake, 2006-07-12 22:35

Subject: git-read-tree: fatal: Entry 'Kbuild' not uptodate. Cannot merge.
Message-ID: <44B57932.4090708@gentoo.org>
URL: https://gitlist.dev/e/44B57932.4090708%40gentoo.org

```
Hi,

I'm having problems trying to merge one branch into another.

$ git --version
git version 1.4.1

$ git branch
* master
   origin
   rf-al7230b
   softmac-experimental

$ git checkout softmac-experimental

$ git diff

$ git pull . master
Merging HEAD with fd0fad8005cb8bfee0225ea04595d915639539e1
Merging:
9b1099f2d6686397ec6b98725afb62051ca6c421 BSS info change handling
fd0fad8005cb8bfee0225ea04595d915639539e1 Merge branch 'wireless-dev'
found 2 common ancestor(s):
a65c077e5fa4ba6d27f87f26b629a5c36ac8181b Justify the existance of 
basic/mandatory rate registers
62fbc2bb68a98d40c53cc07f80e36707e5a84bcc Merge branch 
'softmac-suggest-txrate' into wireless-dev
   Merging:
   a65c077e5fa4ba6d27f87f26b629a5c36ac8181b Justify the existance of 
basic/mandatory rate registers
   62fbc2bb68a98d40c53cc07f80e36707e5a84bcc Merge branch 
'softmac-suggest-txrate' into wireless-dev
   found 1 common ancestor(s):
   19ff9003ab13ff90c55c60a5bb7dd2ddc4d89685 Remove VENDOR_ defines
   Auto-merging zd_mac.c
git-read-tree: fatal: Entry 'Kbuild' not uptodate. Cannot merge.

$ git diff
diff --git a/Kbuild b/Kbuild
diff --git a/zd_chip.c b/zd_chip.c
diff --git a/zd_chip.h b/zd_chip.h
diff --git a/zd_def.h b/zd_def.h
diff --git a/zd_ieee80211.c b/zd_ieee80211.c
diff --git a/zd_ieee80211.h b/zd_ieee80211.h
diff --git a/zd_mac.c b/zd_mac.c
diff --git a/zd_mac.h b/zd_mac.h
diff --git a/zd_netdev.c b/zd_netdev.c
diff --git a/zd_rf.c b/zd_rf.c
diff --git a/zd_rf.h b/zd_rf.h
diff --git a/zd_rf_al2230.c b/zd_rf_al2230.c
diff --git a/zd_rf_rf2959.c b/zd_rf_rf2959.c
diff --git a/zd_usb.c b/zd_usb.c
diff --git a/zd_usb.h b/zd_usb.h
diff --git a/zd_util.c b/zd_util.c
diff --git a/zd_util.h b/zd_util.h

Now, I think I've seen this once or twice before, and I think I solved 
it by checking out all those files listed by "git diff" one by one.

However, when I try this now, the list produced by "git diff" shrinks 
and grows as I check more of them out, and I can't seem to get it down 
to 0 again.

I have also tried the -f flags for checkout and pull, no difference.

What's going on?

Thanks,
Daniel

```

## Linus Torvalds, 2006-07-12 22:39

Subject: Re: git-read-tree: fatal: Entry 'Kbuild' not uptodate. Cannot merge.
Message-ID: <Pine.LNX.4.64.0607121538300.5623@g5.osdl.org>
URL: https://gitlist.dev/e/Pine.LNX.4.64.0607121538300.5623%40g5.osdl.org
In-Reply-To: <44B57932.4090708@gentoo.org>

```


On Wed, 12 Jul 2006, Daniel Drake wrote:
>
> git-read-tree: fatal: Entry 'Kbuild' not uptodate. Cannot merge.
> 
> $ git diff
> diff --git a/Kbuild b/Kbuild
> diff --git a/zd_chip.c b/zd_chip.c
> diff --git a/zd_chip.h b/zd_chip.h
> ...

Do "git update-index --refresh", does it go away?

Although "git checkout -f" should also have done it (much more 
expensively)

		Linus

```

## Daniel Drake, 2006-07-12 22:49

Subject: Re: git-read-tree: fatal: Entry 'Kbuild' not uptodate. Cannot merge.
Message-ID: <44B57C77.1070000@gentoo.org>
URL: https://gitlist.dev/e/44B57C77.1070000%40gentoo.org
In-Reply-To: <Pine.LNX.4.64.0607121538300.5623@g5.osdl.org>

```
Linus Torvalds wrote:
> 
> On Wed, 12 Jul 2006, Daniel Drake wrote:
>> git-read-tree: fatal: Entry 'Kbuild' not uptodate. Cannot merge.
>>
>> $ git diff
>> diff --git a/Kbuild b/Kbuild
>> diff --git a/zd_chip.c b/zd_chip.c
>> diff --git a/zd_chip.h b/zd_chip.h
>> ...
> 
> Do "git update-index --refresh", does it go away?

Yep, thanks.

Daniel

```
