aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-07-07 02:17:28 -0700
committerJunio C Hamano <gitster@pobox.com>2008-07-07 02:17:28 -0700
commit86d72443215612f66f77dfc57ec9613c8153617c (patch)
tree82923deca0de6a8ae263ba84e7f239e881db8388 /t
parent17d778e710f9dacc770b5790e792b85cdba75a9d (diff)
parent121c813f8d6054dbee25c03301599c0f8d645d7f (diff)
downloadgit-86d72443215612f66f77dfc57ec9613c8153617c.tar.gz
git-86d72443215612f66f77dfc57ec9613c8153617c.tar.xz
Merge branch 'jc/rerere'
* jc/rerere: rerere.autoupdate t4200: fix rerere test rerere: remove dubious "tail_optimization" git-rerere: detect unparsable conflicts rerere: rerere_created_at() and has_resolution() abstraction
Diffstat (limited to 't')
-rwxr-xr-xt/t4200-rerere.sh16
1 files changed, 13 insertions, 3 deletions
diff --git a/t/t4200-rerere.sh b/t/t4200-rerere.sh
index 85d7e3edc..a64727d5a 100755
--- a/t/t4200-rerere.sh
+++ b/t/t4200-rerere.sh
@@ -193,9 +193,19 @@ test_expect_success 'resolution was recorded properly' '
echo Bello > file3 &&
git add file3 &&
git commit -m version2 &&
- ! git merge fifth &&
- git diff-files -q &&
- test Cello = "$(cat file3)"
+ git tag version2 &&
+ test_must_fail git merge fifth &&
+ test Cello = "$(cat file3)" &&
+ test 0 != $(git ls-files -u | wc -l)
+'
+
+test_expect_success 'rerere.autoupdate' '
+ git config rerere.autoupdate true
+ git reset --hard &&
+ git checkout version2 &&
+ test_must_fail git merge fifth &&
+ test 0 = $(git ls-files -u | wc -l)
+
'
test_done