Re: [PATCH] cherry-pick/revert: transparently refresh index
On Mittwoch, 3. November 2010, Junio C Hamano wrote:
Show 31 quoted lines
> Johannes Sixt <j6t@kdbg.org> 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