Thread (14 messages) 14 messages, 8 authors, 2007-07-14

Re: why does git perpetually complain about include/asm-blackfin/macros.h?

From: Marco Roeland <hidden>
Date: 2007-07-02 14:37:55
Also in: lkml
Subsystem: the rest · Maintainer: Linus Torvalds

On Monday July 2nd 2007 at 15:58 Jesper Juhl wrote:
[obnoxious zero sized file include/asm-blackfin/macros.h that gets
 zapped by toolchains and resurrected again by git]

I've seen that as well, but in my case doing a
$ git reset --hard master
fixed it.
Dangerous, as it may overwrite local changes you have! A simple "git
checkout include/asm-blackfin/macros.h" is much safer in this case.

In git commit df30b11 this file got redundant. Perhaps because a normal
patch was applied, instead of with git, the file didn't get deleted from
the repository but truncated to size zero. Not strictly wrong perse, but
for the Linux repository highly unusual (and the only one at that).

Your toolchain perhaps deletes files with zero size after cleaning up or
something. Git then notices that you deleted this file.

Perhaps someone can apply something like the following to finally fix
this up:

commit 7d98740800f3d9ad2428afa8c677be9573a51b7b
Author: Marco Roeland [off-list ref]
Date:   Mon Jul 2 16:19:49 2007 +0200

    Blackfin arch: remove zero-sized include/asm-blackfin/macros.h
    
    This file accidentally got truncated instead of deleted in commit df30b11.
    
    Signed-off-by: Marco Roeland [off-list ref]
diff --git a/include/asm-blackfin/macros.h b/include/asm-blackfin/macros.h
deleted file mode 100644
index e69de29..0000000
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help