From: Junio C Hamano Date: Wed, 03 Nov 2010 17:30:44 GMT Subject: Re: [PATCH] cherry-pick/revert: transparently refresh index Message-ID: <7v4obyxqkb.fsf@alter.siamese.dyndns.org> In-Reply-To: <201011010909.15198.j6t@kdbg.org> 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 ) '