diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-01-20 14:42:59 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-01-20 14:42:59 -0800 |
commit | 71b3ef11fa0aade4a514c51b83438858a4a3c03b (patch) | |
tree | 6cea8215ecc0e70c8f19e04c51327deda93672d3 /t | |
parent | f922df8655675aafaea96f3715c9473c63d2ca47 (diff) | |
parent | d38a30df7dd54c5c6883af1de1a03ec7d523cee5 (diff) | |
download | git-71b3ef11fa0aade4a514c51b83438858a4a3c03b.tar.gz |
Merge branch 'mm/conflict-advice'
* mm/conflict-advice:
Be more user-friendly when refusing to do something because of conflict.
Conflicts:
Documentation/config.txt
advice.c
advice.h
Diffstat (limited to 't')
-rwxr-xr-x | t/t3030-merge-recursive.sh | 6 | ||||
-rwxr-xr-x | t/t3501-revert-cherry-pick.sh | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/t/t3030-merge-recursive.sh b/t/t3030-merge-recursive.sh index 9b3fa2bdcd..9929f82021 100755 --- a/t/t3030-merge-recursive.sh +++ b/t/t3030-merge-recursive.sh @@ -276,11 +276,13 @@ test_expect_success 'fail if the index has unresolved entries' ' test_must_fail git merge "$c5" && test_must_fail git merge "$c5" 2> out && + grep "not possible because you have unmerged files" out && + git add -u && + test_must_fail git merge "$c5" 2> out && grep "You have not concluded your merge" out && rm -f .git/MERGE_HEAD && test_must_fail git merge "$c5" 2> out && - grep "You are in the middle of a conflicted merge" out - + grep "Your local changes to .* would be overwritten by merge." out ' test_expect_success 'merge-recursive remove conflict' ' diff --git a/t/t3501-revert-cherry-pick.sh b/t/t3501-revert-cherry-pick.sh index bb4cf00d78..7f858151d4 100755 --- a/t/t3501-revert-cherry-pick.sh +++ b/t/t3501-revert-cherry-pick.sh @@ -66,7 +66,7 @@ test_expect_success 'revert forbidden on dirty working tree' ' echo content >extra_file && git add extra_file && test_must_fail git revert HEAD 2>errors && - grep "Dirty index" errors + grep "Your local changes would be overwritten by " errors ' |