On Saturday 15 Jul 2017 12:14:52 Daniel Wagener wrote:
> On Sat, 15 Jul 2017 11:00:01 +0100
> 
> Peter Humphrey <pe...@prh.myzen.co.uk> wrote:
> > Hello list,
> > 
> > Today I get this:
> > 
> > # emerge --sync
> > 
> > >>> Syncing repository 'gentoo' into '/usr/portage'...
> > 
> > /usr/bin/git pull
> > remote: Counting objects: 25, done.
> > remote: Compressing objects: 100% (9/9), done.
> > remote: Total 25 (delta 15), reused 25 (delta 15), pack-reused 0
> > Unpacking objects: 100% (25/25), done.
> > From https://github.com/gentoo-mirror/gentoo
> > 
> >    c80ef88a736..b9cb9e0b42e  stable     -> origin/stable
> > 
> > Updating c5ec29f674c..b9cb9e0b42e
> > error: Your local changes to the following files would be overwritten
> > 
> > by merge:
> >         metadata/layout.conf
> > 
> > Please commit your changes or stash them before you merge.
> > Aborting
> > !!! git pull error in /usr/portage
> > 
> > I can't imagine I'd ever make any changes to that file, especially
> > not using git, but I tried reverting to backups of /var
> > and /usr/portage from a week ago, but I still get the same error.
> > Using backups from two weeks ago also made no difference.
> > 
> > I sync and update every day, with never a problem like this before.
> > 
> > Can anyone see what else I should try? Should I just delete the
> > offending file? (I'll get some coffee meanwhile...)
> 
> Why not just go there and do a "git diff"?
> It will show you what changed – maybe that gives an Idea what happened

It showed me that I'd changed "masters =" to "masters = gentoo" in 
layout.conf, which I knew because I'd been told to at some time. But I did 
that ages ago, long before my last sync yesterday, so what else has changed? 
I didn't emerge anything yesterday, as confirmed by "grep completed 
/var/log/emerge.log" (so it wasn't a failed emerge, Alexander).

> "git reset --hard" to reset the repository should solve that problem.

It has - thanks Daniel. I haven't tried to understand the ins and outs of 
git, I just use it blindly for --sync.

-- 
Regards
Peter


Reply via email to