revert tests: always use core.autocrlf=false in tests
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
diff --git a/tests/resources/revert/.gitted/objects/00/c97c9299419874a7bfc4d853d462c568e1be2d b/tests/resources/revert/.gitted/objects/00/c97c9299419874a7bfc4d853d462c568e1be2d
new file mode 100644
index 0000000..b4e9635
Binary files /dev/null and b/tests/resources/revert/.gitted/objects/00/c97c9299419874a7bfc4d853d462c568e1be2d differ
diff --git a/tests/resources/revert/.gitted/objects/10/10c8f4711d60d04bad16197a0f4b0d4d19c542 b/tests/resources/revert/.gitted/objects/10/10c8f4711d60d04bad16197a0f4b0d4d19c542
new file mode 100644
index 0000000..083f746
Binary files /dev/null and b/tests/resources/revert/.gitted/objects/10/10c8f4711d60d04bad16197a0f4b0d4d19c542 differ
diff --git a/tests/resources/revert/.gitted/objects/5c/f1d643f100d8112834e540264546ba2c159976 b/tests/resources/revert/.gitted/objects/5c/f1d643f100d8112834e540264546ba2c159976
deleted file mode 100644
index dbbf711..0000000
Binary files a/tests/resources/revert/.gitted/objects/5c/f1d643f100d8112834e540264546ba2c159976 and /dev/null differ
diff --git a/tests/resources/revert/.gitted/objects/75/ec9929465623f17ff3ad68c0438ea56faba815 b/tests/resources/revert/.gitted/objects/75/ec9929465623f17ff3ad68c0438ea56faba815
new file mode 100644
index 0000000..a3609c7
Binary files /dev/null and b/tests/resources/revert/.gitted/objects/75/ec9929465623f17ff3ad68c0438ea56faba815 differ
diff --git a/tests/resources/revert/.gitted/objects/8b/e77695228eadd004606af0508462457961ca4a b/tests/resources/revert/.gitted/objects/8b/e77695228eadd004606af0508462457961ca4a
new file mode 100644
index 0000000..951917c
Binary files /dev/null and b/tests/resources/revert/.gitted/objects/8b/e77695228eadd004606af0508462457961ca4a differ
diff --git a/tests/resources/revert/.gitted/objects/97/e52d5e81f541080cd6b92829fb85bc4d81d90b b/tests/resources/revert/.gitted/objects/97/e52d5e81f541080cd6b92829fb85bc4d81d90b
new file mode 100644
index 0000000..416ae0f
Binary files /dev/null and b/tests/resources/revert/.gitted/objects/97/e52d5e81f541080cd6b92829fb85bc4d81d90b differ
diff --git a/tests/resources/revert/.gitted/objects/aa/7e281435d1fe6740d712f4bcc6fe89c425bedc b/tests/resources/revert/.gitted/objects/aa/7e281435d1fe6740d712f4bcc6fe89c425bedc
new file mode 100644
index 0000000..f0dd67d
Binary files /dev/null and b/tests/resources/revert/.gitted/objects/aa/7e281435d1fe6740d712f4bcc6fe89c425bedc differ
diff --git a/tests/resources/revert/.gitted/objects/b6/9d88e177455579896e2be495046e2a51456a9a b/tests/resources/revert/.gitted/objects/b6/9d88e177455579896e2be495046e2a51456a9a
deleted file mode 100644
index a5f69f2..0000000
--- a/tests/resources/revert/.gitted/objects/b6/9d88e177455579896e2be495046e2a51456a9a
+++ /dev/null
@@ -1 +0,0 @@
-x]j!*.yoљ{R
l@NFZԴ$@o 54@+z-FP2{Hn"zZR.<J|ˀ2Ț:VfR ´Xanc
>5VsNShuC4Yk;݇q߱
8ZF*W+B\ԡ=,uwd
\ No newline at end of file
diff --git a/tests/resources/revert/.gitted/objects/ca/f99de3a49827117bb66721010eac461b06a80c b/tests/resources/revert/.gitted/objects/ca/f99de3a49827117bb66721010eac461b06a80c
deleted file mode 100644
index 7f6f4e0..0000000
Binary files a/tests/resources/revert/.gitted/objects/ca/f99de3a49827117bb66721010eac461b06a80c and /dev/null differ
diff --git a/tests/resources/revert/.gitted/objects/de/03538407ed18914ff05657eeff70425c0f304d b/tests/resources/revert/.gitted/objects/de/03538407ed18914ff05657eeff70425c0f304d
deleted file mode 100644
index e651676..0000000
--- a/tests/resources/revert/.gitted/objects/de/03538407ed18914ff05657eeff70425c0f304d
+++ /dev/null
@@ -1,2 +0,0 @@
-x]J1})}wIw~D|H:vlL;|)MPLeYuY}ԩ+mX2g0.{z,U5_'!ʂ5i!agǼ+ko{{i:3,u
H1"#=NGyON
-Zy2rvh(KabdV[uFrRW(1|_c&
\ No newline at end of file
diff --git a/tests/resources/revert/.gitted/objects/e5/f831f064adf9224d8c3ce556959d9d61b3c0a9 b/tests/resources/revert/.gitted/objects/e5/f831f064adf9224d8c3ce556959d9d61b3c0a9
new file mode 100644
index 0000000..665f1a1
--- /dev/null
+++ b/tests/resources/revert/.gitted/objects/e5/f831f064adf9224d8c3ce556959d9d61b3c0a9
@@ -0,0 +1 @@
+xOIj1Yh|[3K>`Ib +h8y@*j]FWBD2 (4Q#N(,ckcۀ0SqL1˔6],$`2c,Û|.p]Z
uWk]so[+[}bbf|'dDСD~jpêGc˺A|ki`
\ No newline at end of file
diff --git a/tests/resources/revert/.gitted/refs/heads/two b/tests/resources/revert/.gitted/refs/heads/two
index f31ec00..69d76cf 100644
--- a/tests/resources/revert/.gitted/refs/heads/two
+++ b/tests/resources/revert/.gitted/refs/heads/two
@@ -1 +1 @@
-e34ef1afe54eb526fd92eec66084125f340f1d65
+75ec9929465623f17ff3ad68c0438ea56faba815
diff --git a/tests/revert/workdir.c b/tests/revert/workdir.c
index 0121429..6a7b335 100644
--- a/tests/revert/workdir.c
+++ b/tests/revert/workdir.c
@@ -303,8 +303,8 @@ void test_revert_workdir__again_after_edit(void)
/*
* revert the same commit twice (when the first reverts cleanly):
*
- * git reset --hard e34ef1a
- * git revert 71eb9c2
+ * git reset --hard 75ec9929465623f17ff3ad68c0438ea56faba815
+ * git revert 97e52d5e81f541080cd6b92829fb85bc4d81d90b
*/
void test_revert_workdir__again_after_edit_two(void)
{
@@ -314,8 +314,6 @@ void test_revert_workdir__again_after_edit_two(void)
git_commit *head_commit, *revert_commit;
struct merge_index_entry merge_index_entries[] = {
- { 0100644, "1ff0c423042b46cb1d617b81efb715defbe8054d", 0, ".gitattributes" },
- { 0100644, "1bc915c5cb7185a9438de28a7b1a7dfe8c01ee7f", 0, ".gitignore" },
{ 0100644, "a8c86221b400b836010567cc3593db6e96c1a83a", 1, "file.txt" },
{ 0100644, "46ff0854663aeb2182b9838c8da68e33ac23bc1e", 2, "file.txt" },
{ 0100644, "21a96a98ed84d45866e1de6e266fd3a61a4ae9dc", 3, "file.txt" },
@@ -324,23 +322,23 @@ void test_revert_workdir__again_after_edit_two(void)
cl_git_pass(git_repository_config(&config, repo));
cl_git_pass(git_config_set_bool(config, "core.autocrlf", 0));
- cl_git_pass(git_oid_fromstr(&head_commit_oid, "e34ef1afe54eb526fd92eec66084125f340f1d65"));
+ cl_git_pass(git_oid_fromstr(&head_commit_oid, "75ec9929465623f17ff3ad68c0438ea56faba815"));
cl_git_pass(git_commit_lookup(&head_commit, repo, &head_commit_oid));
cl_git_pass(git_reset(repo, (git_object *)head_commit, GIT_RESET_HARD, NULL, NULL, NULL));
- cl_git_pass(git_oid_fromstr(&revert_commit_oid, "71eb9c2b53dbbf3c45fb28b27c850db4b7fb8011"));
+ cl_git_pass(git_oid_fromstr(&revert_commit_oid, "97e52d5e81f541080cd6b92829fb85bc4d81d90b"));
cl_git_pass(git_commit_lookup(&revert_commit, repo, &revert_commit_oid));
cl_git_pass(git_revert(repo, revert_commit, NULL));
- cl_assert(merge_test_index(repo_index, merge_index_entries, 5));
+ cl_assert(merge_test_index(repo_index, merge_index_entries, 3));
cl_git_pass(git_futils_readbuffer(&diff_buf, "revert/file.txt"));
cl_assert(strcmp(diff_buf.ptr, "a\n" \
"<<<<<<< HEAD\n" \
"=======\n" \
"a\n" \
- ">>>>>>> parent of 71eb9c2... revert me\n" \
+ ">>>>>>> parent of 97e52d5... Revert me\n" \
"a\n" \
"a\n" \
"a\n" \