From: Junio C Hamano Date: Wed, 13 Oct 2010 21:59:40 GMT Subject: Re: [PATCH 1/5 v2] t7607: use test-lib functions and check MERGE_HEAD Message-ID: <7v62x5iwj7.fsf@alter.siamese.dyndns.org> In-Reply-To: <20101010083543.GA12186@localhost> Clemens Buchacher writes: > test_expect_success 'will not overwrite untracked file' ' > git reset --hard c1 && > - cat important > c2.c && > + cp important c2.c && > test_must_fail git merge c2 && > + test_path_is_missing .git/MERGE_HEAD && > test_cmp important c2.c > ' > > test_expect_success 'will not overwrite new file' ' > git reset --hard c1 && > - cat important > c2.c && > + cp important c2.c && Why?