From: Johannes Sixt Date: Wed, 03 Nov 2010 20:33:23 GMT Subject: Re: [PATCH] cherry-pick/revert: transparently refresh index Message-ID: <201011032133.23448.j6t@kdbg.org> In-Reply-To: <7v4obyxqkb.fsf@alter.siamese.dyndns.org> On Mittwoch, 3. November 2010, Junio C Hamano wrote: > Johannes Sixt writes: > > On Windows, this doesn't test what it should test because we do not look > > at the inode number (currently). Please use test-chmtime to change stat > > information. > > Like this, perhaps? > > diff --git a/t/t3501-revert-cherry-pick.sh b/t/t3501-revert-cherry-pick.sh > index b210188..a5b963a 100755 > --- a/t/t3501-revert-cherry-pick.sh > +++ b/t/t3501-revert-cherry-pick.sh > @@ -81,15 +81,12 @@ test_expect_success 'revert after renaming branch' ' > > ' > > -test_expect_success 'revert on stat-dirty working tree' ' > - git clone . repo && > - ( > - cd repo && > - git checkout initial > - ) && > - cp -R repo copy && > +test_expect_success 'cherry-pick on stat-dirty working tree' ' > + git clone . copy > ( > cd copy && > + git checkout initial && > + test-chmtime +40 oops && > git cherry-pick added > ) > ' Yes, makes sense. -- Hannes