summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2018-10-20 19:08:16 +0100
committerEdward Thomson <ethomson@edwardthomson.com>2018-10-20 19:57:44 +0100
commitc79e6081a893ae144cd1aeb04a7a337091ad5016 (patch)
treee26c4ca296d55eb7644305c11c62788c64f33669
parentfd490d3ed5812b930768071433882ffae14da468 (diff)
downloadlibgit2-cmn/validity-tree-from-unowned-index.tar.gz
checkout: fix test fixture missing objectscmn/validity-tree-from-unowned-index
The testrepo test fixture has an index file that's damaged, missing an object. The index previously had an entry of `src/index.c` with id 3161df8cbf3a006b4ef85be6497a0ea6bde98541, but that object was missing in the repository. This commit adds an object to the repository and updates the index to use that existing blob. Similarly, the index has an entry for `readme` with an id of 97328ac7e3bd0bcd3900cb3e7a624d71dd0df888. This can be restored from other test repositories. With these fixed, now the write tree from index tests can pass since they validate object existence.
-rw-r--r--tests/resources/testrepo/.gitted/indexbin10041 -> 10232 bytes
-rw-r--r--tests/resources/testrepo/.gitted/objects/97/328ac7e3bd0bcd3900cb3e7a624d71dd0df888bin0 -> 40 bytes
-rw-r--r--tests/resources/testrepo/.gitted/objects/99/1f1b12603e1d78411c1b4042719f964efa7adfbin0 -> 5599 bytes
3 files changed, 0 insertions, 0 deletions
diff --git a/tests/resources/testrepo/.gitted/index b/tests/resources/testrepo/.gitted/index
index a27fb9c96..963f7adbb 100644
--- a/tests/resources/testrepo/.gitted/index
+++ b/tests/resources/testrepo/.gitted/index
Binary files differ
diff --git a/tests/resources/testrepo/.gitted/objects/97/328ac7e3bd0bcd3900cb3e7a624d71dd0df888 b/tests/resources/testrepo/.gitted/objects/97/328ac7e3bd0bcd3900cb3e7a624d71dd0df888
new file mode 100644
index 000000000..2aa37bc43
--- /dev/null
+++ b/tests/resources/testrepo/.gitted/objects/97/328ac7e3bd0bcd3900cb3e7a624d71dd0df888
Binary files differ
diff --git a/tests/resources/testrepo/.gitted/objects/99/1f1b12603e1d78411c1b4042719f964efa7adf b/tests/resources/testrepo/.gitted/objects/99/1f1b12603e1d78411c1b4042719f964efa7adf
new file mode 100644
index 000000000..4173754c0
--- /dev/null
+++ b/tests/resources/testrepo/.gitted/objects/99/1f1b12603e1d78411c1b4042719f964efa7adf
Binary files differ