Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: "Michał Górny" <mgorny@g.o>, Zac Medico <zmedico@g.o>
Cc: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] [PATCH] [sync] Run `git update-index --refresh` when doing shallow pulls
Date: Sun, 30 Oct 2016 20:53:10
Message-Id: ab8cc037-77e4-18e4-c6ae-a7afdebbdf36@gentoo.org
In Reply to: Re: [gentoo-portage-dev] [PATCH] [sync] Run `git update-index --refresh` when doing shallow pulls by "Michał Górny"
1 On 10/30/2016 01:44 PM, Michał Górny wrote:
2 > On Sun, 30 Oct 2016 13:39:53 -0700
3 > Zac Medico <zmedico@g.o> wrote:
4 >
5 >> On 10/30/2016 12:23 PM, Michał Górny wrote:
6 >>> Run `git update-index --refresh` to force proper index recheck before
7 >>> running `git reset --merge` on a shallow pull. This fixes syncing on
8 >>> some filesystem configurations including overlayfs on squashfs.
9 >>
10 >> Maybe we should use --really-refresh in case the --assume-unchanged flag
11 >> gets toggled on somehow (maybe via .git/config)?
12 >
13 > I don't know. I think we can revisit it if it really becomes a problem
14 > for anyone.
15
16 OK, sounds good. The patch LGTM.
17 --
18 Thanks,
19 Zac

Replies