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

Recent annoying problem with Linus's git repository?

From
Wwalt <w41ter@gmail.com>
Date
Jan 12, 2009, 00:42 UTC
Message-ID
<alpine.LNX.2.00.0901111615500.4963@x9.ybpnyarg>

I've been tracking Junio's git.git and Linus's kernel.git for ages, and just in the last two weeks or so I've been having a recurring problem with the file "arch/arm/mach-integrator/clock.h" from Linus.

Any time I check out an old kernel version (e.g. during a bisect) and then do a "checkout master" when I'm done fiddling, git thinks my repository is "dirty".

This is the reason for my impurity:

# git status # On branch master # Changed but not updated: # (use "git add/rm <file>..." to update what will be committed) # (use "git checkout -- <file>..." to discard changes in working directory) # # deleted: arch/arm/mach-integrator/clock.h

It's always that same damned clock.h that remains in my working directory after doing the "checkout master" but it shouldn't be there -- it has indeed been deleted from branch master.

When I then do a "git reset --hard" I Am Purified! and no longer considered dirty. But why should that extra reset step be needed?

Only that one file is involved in this recurring annoyance. Can anyone figure out why, or at least reproduce the problem?

Thanks!
Next: Marco Roeland
Message 1 of 3 in “Recent annoying problem with Linus's git repository?”
  1. waltJan 12, 2009
  2. Marco RoelandJan 12, 2009
  3. Marco RoelandJan 12, 2009

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.