* Recent annoying problem with Linus's git repository?
@ 2009-01-12 0:42 walt
2009-01-12 7:59 ` Marco Roeland
0 siblings, 1 reply; 3+ messages in thread
From: walt @ 2009-01-12 0:42 UTC (permalink / raw)
To: git
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!
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Recent annoying problem with Linus's git repository?
2009-01-12 0:42 Recent annoying problem with Linus's git repository? walt
@ 2009-01-12 7:59 ` Marco Roeland
2009-01-12 8:29 ` Marco Roeland
0 siblings, 1 reply; 3+ messages in thread
From: Marco Roeland @ 2009-01-12 7:59 UTC (permalink / raw)
To: walt; +Cc: git, rmk
On Sunday January 11th 2009 at 16:42 walt wrote:
> 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?
It is because commit d72fbdf01fc77628c0b837d0dd2fd564fa26ede6 "[ARM]
integrator: convert to clkdev and lookup clocks by device name" didn't
really _delete_ file arch/arm/mach-integrator/clock.h but only made it
empty. So the file still exists in the repository, but with size 0.
Cleanup scripts within the kernel build environment however always
consider empty files leftover products from the build and so delete
them.
That's why you get this result, after cleaning up.
The file should probably just be really deleted. Adding Russell to the
Cc. ;-)
At the moment (git describe gives v2.6.29-rc1-1-gae04d14) this is the
only "empty" file in the kernel repository. We've had these cases
before.
--
Marco Roeland
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-01-12 8:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-12 0:42 Recent annoying problem with Linus's git repository? walt
2009-01-12 7:59 ` Marco Roeland
2009-01-12 8:29 ` Marco Roeland
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox