From 7b5311d31519a5844e95881856539448c8d392ca Mon Sep 17 00:00:00 2001 From: Marc Strapetz Date: Thu, 10 Mar 2016 11:04:56 +0100 Subject: [PATCH] Tests: create programmatically, add files in sub-directory --- src/main/java/org/libgit2/jagged/Mode.java | 5 +- .../java/org/libgit2/jagged/CommitTest.java | 22 +-- src/test/java/org/libgit2/jagged/GitTest.java | 61 +------ .../java/org/libgit2/jagged/TreeTest.java | 26 ++- .../jagged/core/NativeTestMethods.java | 4 + .../native/libjagged_test/test-repository.c | 170 ++++++++++++++++++ src/test/native/libjagged_test/testutil.c | 8 + src/test/native/libjagged_test/testutil.h | 3 + src/test/resources/testrepo/.gitattributes | 1 - src/test/resources/testrepo/.gitted/HEAD | 1 - src/test/resources/testrepo/.gitted/config | 6 - .../resources/testrepo/.gitted/description | 1 - src/test/resources/testrepo/.gitted/index | Bin 361 -> 0 bytes .../resources/testrepo/.gitted/info/exclude | 6 - src/test/resources/testrepo/.gitted/logs/HEAD | 3 - .../testrepo/.gitted/logs/refs/heads/master | 3 - .../05/5fe18dd1aef07991ebd08b4d54fc761dd022fb | Bin 138 -> 0 bytes .../17/6a458f94e0ea5272ce67c36bf30b6be9caf623 | Bin 28 -> 0 bytes .../2d/08ab4853a55488a4e3323ebf804c3a732a2f6d | Bin 33 -> 0 bytes .../57/cf500670b83b1ad4d86db6436bb91531cf3e27 | 1 - .../5e/ab02d63a3676df528bcd878ac935ec0c4d5bdc | Bin 162 -> 0 bytes .../5f/a5363e9ca45dd8fbf2be90a6898f40332f72b9 | 2 - .../8f/be49af0d14c65f881b57709acae2ea3414089a | Bin 34 -> 0 bytes .../96/a82bbe56b718c4c452491014c91d9b63ab8a79 | Bin 33 -> 0 bytes .../c1/a317a9997907e9245580b6bba9ede7874a5967 | Bin 147 -> 0 bytes .../d1/796967d47949153bb852c07304d9e5f2f0040c | Bin 32 -> 0 bytes .../d4/bcc68acd4410bf836a39f20afb2c2ece09584e | Bin 35 -> 0 bytes .../dc/48b6c38e967e57965e36c6f7a1c3ec5c3e1ff4 | Bin 32 -> 0 bytes .../e7/7ab1c63f3fbde9c5ef9972939aa0717012d7c0 | Bin 109 -> 0 bytes .../testrepo/.gitted/refs/heads/master | 1 - src/test/resources/testrepo/one.txt | 1 - src/test/resources/testrepo/three.txt | 1 - src/test/resources/testrepo/two.txt | 1 - 33 files changed, 229 insertions(+), 98 deletions(-) create mode 100644 src/test/native/libjagged_test/test-repository.c create mode 100644 src/test/native/libjagged_test/testutil.c create mode 100644 src/test/native/libjagged_test/testutil.h delete mode 100644 src/test/resources/testrepo/.gitattributes delete mode 100644 src/test/resources/testrepo/.gitted/HEAD delete mode 100644 src/test/resources/testrepo/.gitted/config delete mode 100644 src/test/resources/testrepo/.gitted/description delete mode 100644 src/test/resources/testrepo/.gitted/index delete mode 100644 src/test/resources/testrepo/.gitted/info/exclude delete mode 100644 src/test/resources/testrepo/.gitted/logs/HEAD delete mode 100644 src/test/resources/testrepo/.gitted/logs/refs/heads/master delete mode 100644 src/test/resources/testrepo/.gitted/objects/05/5fe18dd1aef07991ebd08b4d54fc761dd022fb delete mode 100644 src/test/resources/testrepo/.gitted/objects/17/6a458f94e0ea5272ce67c36bf30b6be9caf623 delete mode 100644 src/test/resources/testrepo/.gitted/objects/2d/08ab4853a55488a4e3323ebf804c3a732a2f6d delete mode 100644 src/test/resources/testrepo/.gitted/objects/57/cf500670b83b1ad4d86db6436bb91531cf3e27 delete mode 100644 src/test/resources/testrepo/.gitted/objects/5e/ab02d63a3676df528bcd878ac935ec0c4d5bdc delete mode 100644 src/test/resources/testrepo/.gitted/objects/5f/a5363e9ca45dd8fbf2be90a6898f40332f72b9 delete mode 100644 src/test/resources/testrepo/.gitted/objects/8f/be49af0d14c65f881b57709acae2ea3414089a delete mode 100644 src/test/resources/testrepo/.gitted/objects/96/a82bbe56b718c4c452491014c91d9b63ab8a79 delete mode 100644 src/test/resources/testrepo/.gitted/objects/c1/a317a9997907e9245580b6bba9ede7874a5967 delete mode 100644 src/test/resources/testrepo/.gitted/objects/d1/796967d47949153bb852c07304d9e5f2f0040c delete mode 100644 src/test/resources/testrepo/.gitted/objects/d4/bcc68acd4410bf836a39f20afb2c2ece09584e delete mode 100644 src/test/resources/testrepo/.gitted/objects/dc/48b6c38e967e57965e36c6f7a1c3ec5c3e1ff4 delete mode 100644 src/test/resources/testrepo/.gitted/objects/e7/7ab1c63f3fbde9c5ef9972939aa0717012d7c0 delete mode 100644 src/test/resources/testrepo/.gitted/refs/heads/master delete mode 100644 src/test/resources/testrepo/one.txt delete mode 100644 src/test/resources/testrepo/three.txt delete mode 100644 src/test/resources/testrepo/two.txt diff --git a/src/main/java/org/libgit2/jagged/Mode.java b/src/main/java/org/libgit2/jagged/Mode.java index fe032c2..e5220f5 100644 --- a/src/main/java/org/libgit2/jagged/Mode.java +++ b/src/main/java/org/libgit2/jagged/Mode.java @@ -10,7 +10,10 @@ public enum Mode FILE(0100644), /** A file with the executable bit set */ - EXECUTABLE_FILE(0100755); + EXECUTABLE_FILE(0100755), + + /** A directory/tree */ + TREE(0040000); private final int value; diff --git a/src/test/java/org/libgit2/jagged/CommitTest.java b/src/test/java/org/libgit2/jagged/CommitTest.java index c703ad3..aa1e01a 100644 --- a/src/test/java/org/libgit2/jagged/CommitTest.java +++ b/src/test/java/org/libgit2/jagged/CommitTest.java @@ -16,7 +16,7 @@ public void testLookupCommit() final File repoPath = setupRepository("testrepo"); Repository repository = new Repository(repoPath.getAbsolutePath()); - ObjectId oid = new ObjectId("055fe18dd1aef07991ebd08b4d54fc761dd022fb"); + ObjectId oid = new ObjectId(FIRST_COMMIT_ID); Commit commit = repository.lookup(oid); Assert.assertEquals(oid, commit.getId()); @@ -30,11 +30,11 @@ public void testGetCommitter() final File repoPath = setupRepository("testrepo"); Repository repository = new Repository(repoPath.getAbsolutePath()); - ObjectId oid = new ObjectId("055fe18dd1aef07991ebd08b4d54fc761dd022fb"); + ObjectId oid = new ObjectId(FIRST_COMMIT_ID); Commit commit = repository.lookup(oid); - Assert.assertEquals("Edward Thomson", commit.getCommitter().getName()); - Assert.assertEquals("ethomson@microsoft.com", commit.getCommitter().getEmail()); + Assert.assertEquals(AUTHOR_NAME, commit.getCommitter().getName()); + Assert.assertEquals(AUTHOR_EMAIL, commit.getCommitter().getEmail()); repository.close(); } @@ -45,11 +45,11 @@ public void testGetAuthor() final File repoPath = setupRepository("testrepo"); Repository repository = new Repository(repoPath.getAbsolutePath()); - ObjectId oid = new ObjectId("5eab02d63a3676df528bcd878ac935ec0c4d5bdc"); + ObjectId oid = new ObjectId(SECOND_COMMIT_ID); Commit commit = repository.lookup(oid); - Assert.assertEquals("Edward Thomson", commit.getAuthor().getName()); - Assert.assertEquals("ethomson@microsoft.com", commit.getAuthor().getEmail()); + Assert.assertEquals(AUTHOR_NAME, commit.getAuthor().getName()); + Assert.assertEquals(AUTHOR_EMAIL, commit.getAuthor().getEmail()); repository.close(); } @@ -60,12 +60,12 @@ public void testGetParents() final File repoPath = setupRepository("testrepo"); Repository repository = new Repository(repoPath.getAbsolutePath()); - ObjectId parentOid = new ObjectId("055fe18dd1aef07991ebd08b4d54fc761dd022fb"); + ObjectId parentOid = new ObjectId(FIRST_COMMIT_ID); Commit parent = repository.lookup(parentOid); Assert.assertEquals(false, parent.getParents().iterator().hasNext()); - ObjectId childOid = new ObjectId("5eab02d63a3676df528bcd878ac935ec0c4d5bdc"); + ObjectId childOid = new ObjectId(SECOND_COMMIT_ID); Commit child = repository.lookup(childOid); Iterator parents = child.getParents().iterator(); @@ -82,10 +82,10 @@ public void testGetTree() final File repoPath = setupRepository("testrepo"); Repository repository = new Repository(repoPath.getAbsolutePath()); - ObjectId oid = new ObjectId("055fe18dd1aef07991ebd08b4d54fc761dd022fb"); + ObjectId oid = new ObjectId(FIRST_COMMIT_ID); Commit commit = repository.lookup(oid); - Tree tree = repository.lookup(new ObjectId("e77ab1c63f3fbde9c5ef9972939aa0717012d7c0")); + Tree tree = repository.lookup(new ObjectId("ff77323c5557be69500eb91efa418074fd3f0443")); Assert.assertEquals(tree, commit.getTree()); diff --git a/src/test/java/org/libgit2/jagged/GitTest.java b/src/test/java/org/libgit2/jagged/GitTest.java index 816ebb8..728c459 100644 --- a/src/test/java/org/libgit2/jagged/GitTest.java +++ b/src/test/java/org/libgit2/jagged/GitTest.java @@ -1,19 +1,21 @@ package org.libgit2.jagged; import java.io.File; -import java.io.FileInputStream; -import java.io.FileOutputStream; -import java.nio.channels.FileChannel; import java.text.MessageFormat; import org.junit.After; import org.junit.AfterClass; import org.junit.Before; import org.junit.BeforeClass; +import org.libgit2.jagged.core.NativeTestMethods; public abstract class GitTest { - private static File resourcesRoot; + public static String FIRST_COMMIT_ID = "de6e275694ca4b8850f380650cf6e4e26169d15f"; + public static String SECOND_COMMIT_ID = "3dcee60faede7e1acf6058345a29748ae31f74bc"; + public static String AUTHOR_NAME = "T. E. Ster"; + public static String AUTHOR_EMAIL = "tester@domain.com"; + private static File tempRoot; private static File tempDir; private static File tempConfigurationDir; @@ -24,13 +26,6 @@ public abstract class GitTest { File systemTempDir; - resourcesRoot = new File("src/test/resources"); - - if (!resourcesRoot.exists()) - { - resourcesRoot = new File(GitTest.class.getResource("/testrepo").getFile()).getParentFile(); - } - if (System.getenv("TMPDIR") != null) { systemTempDir = new File(System.getenv("TMPDIR")); @@ -128,48 +123,10 @@ private static void cleanupDirectory(final File file) } } - private static File copyRecursive(final File source, final File target, final String item) - { - final String sourceItem = item; - final String targetItem = (item.equals(".gitted") ? ".git" : item); - - final File sourceFile = new File(source, sourceItem); - final File targetFile = new File(target, targetItem); - - if (sourceFile.isDirectory()) - { - targetFile.mkdir(); - - for (String child : sourceFile.list()) - { - copyRecursive(sourceFile, targetFile, child); - } - - return targetFile; - } - else - { - try - { - @SuppressWarnings("resource") - FileChannel sourceChannel = new FileInputStream(sourceFile).getChannel(); - @SuppressWarnings("resource") - FileChannel targetChannel = new FileOutputStream(targetFile).getChannel(); - targetChannel.transferFrom(sourceChannel, 0, sourceChannel.size()); - sourceChannel.close(); - targetChannel.close(); - - return targetFile; - } - catch (Exception e) - { - throw new RuntimeException(e); - } - } - } - public File setupRepository(final String name) { - return copyRecursive(resourcesRoot, tempDir, name); + File path = new File(tempDir, name); + NativeTestMethods.createTestRepository(path.getAbsolutePath().replace("\\", "/"), new Signature(AUTHOR_NAME, AUTHOR_EMAIL)); + return path; } } diff --git a/src/test/java/org/libgit2/jagged/TreeTest.java b/src/test/java/org/libgit2/jagged/TreeTest.java index 2b86370..c78ee36 100644 --- a/src/test/java/org/libgit2/jagged/TreeTest.java +++ b/src/test/java/org/libgit2/jagged/TreeTest.java @@ -16,7 +16,7 @@ public void testLookupTree() final File repoPath = setupRepository("testrepo"); Repository repository = new Repository(repoPath.getAbsolutePath()); - ObjectId oid = new ObjectId("e77ab1c63f3fbde9c5ef9972939aa0717012d7c0"); + ObjectId oid = new ObjectId("ff77323c5557be69500eb91efa418074fd3f0443"); Tree tree = repository.lookup(oid); Assert.assertEquals(oid, tree.getId()); @@ -30,10 +30,10 @@ public void testGetEntryCount() final File repoPath = setupRepository("testrepo"); Repository repository = new Repository(repoPath.getAbsolutePath()); - ObjectId oid = new ObjectId("e77ab1c63f3fbde9c5ef9972939aa0717012d7c0"); + ObjectId oid = new ObjectId("ff77323c5557be69500eb91efa418074fd3f0443"); Tree tree = repository.lookup(oid); - Assert.assertEquals(3, tree.getEntryCount()); + Assert.assertEquals(5, tree.getEntryCount()); repository.close(); } @@ -44,13 +44,27 @@ public void testGetEntries() final File repoPath = setupRepository("testrepo"); Repository repository = new Repository(repoPath.getAbsolutePath()); - ObjectId oid = new ObjectId("e77ab1c63f3fbde9c5ef9972939aa0717012d7c0"); + ObjectId oid = new ObjectId("ff77323c5557be69500eb91efa418074fd3f0443"); Tree tree = repository.lookup(oid); Iterator iterator = tree.getEntries().iterator(); TreeEntry entry = iterator.next(); + Assert.assertEquals(".gitattributes", entry.getName()); + Assert.assertEquals(new ObjectId("176a458f94e0ea5272ce67c36bf30b6be9caf623"), entry.getId()); + Assert.assertEquals(Mode.FILE, entry.getMode()); + Assert.assertEquals(ObjectType.BLOB, entry.getType()); + + entry = iterator.next(); + + Assert.assertEquals("a", entry.getName()); + Assert.assertEquals(new ObjectId("32ef2016c46507680e32272204b1095cdf232f5d"), entry.getId()); + Assert.assertEquals(Mode.TREE, entry.getMode()); + Assert.assertEquals(ObjectType.TREE, entry.getType()); + + entry = iterator.next(); + Assert.assertEquals("one.txt", entry.getName()); Assert.assertEquals(new ObjectId("d1796967d47949153bb852c07304d9e5f2f0040c"), entry.getId()); Assert.assertEquals(Mode.FILE, entry.getMode()); @@ -81,7 +95,7 @@ public void testGetEntryByName() final File repoPath = setupRepository("testrepo"); Repository repository = new Repository(repoPath.getAbsolutePath()); - ObjectId oid = new ObjectId("e77ab1c63f3fbde9c5ef9972939aa0717012d7c0"); + ObjectId oid = new ObjectId("ff77323c5557be69500eb91efa418074fd3f0443"); Tree tree = repository.lookup(oid); TreeEntry entry = tree.getEntry("one.txt"); @@ -114,7 +128,7 @@ public void testCanRealizeTreeEntry() final File repoPath = setupRepository("testrepo"); Repository repository = new Repository(repoPath.getAbsolutePath()); - ObjectId oid = new ObjectId("e77ab1c63f3fbde9c5ef9972939aa0717012d7c0"); + ObjectId oid = new ObjectId("ff77323c5557be69500eb91efa418074fd3f0443"); Tree tree = repository.lookup(oid); TreeEntry entry = tree.getEntry("one.txt"); diff --git a/src/test/java/org/libgit2/jagged/core/NativeTestMethods.java b/src/test/java/org/libgit2/jagged/core/NativeTestMethods.java index 5143571..18394a5 100644 --- a/src/test/java/org/libgit2/jagged/core/NativeTestMethods.java +++ b/src/test/java/org/libgit2/jagged/core/NativeTestMethods.java @@ -1,5 +1,7 @@ package org.libgit2.jagged.core; +import org.libgit2.jagged.Signature; + public class NativeTestMethods { static @@ -20,4 +22,6 @@ public class NativeTestMethods public static native void throwFormattedString2(); public static native void throwFormattedString3(); + + public static native void createTestRepository(String path, Signature signature); } diff --git a/src/test/native/libjagged_test/test-repository.c b/src/test/native/libjagged_test/test-repository.c new file mode 100644 index 0000000..80ef622 --- /dev/null +++ b/src/test/native/libjagged_test/test-repository.c @@ -0,0 +1,170 @@ +#include +#include + +#include + +#include +#include +#include + +#include "testutil.h" +#include "util.h" + +int jni_get_method_id_by_class(jmethodID *methodId, jclass clazz, char *method_name, char *method_signature, + JNIEnv *env) { + *methodId = (*env)->GetMethodID(env, clazz, method_name, method_signature); + return *methodId != NULL ? 1 : 0; +} + +int jni_call_object_method(jobject *result, jobject object, char *class_name, char *method_name, char *method_signature, JNIEnv *env) { + jclass java_class; + if (class_name != NULL) { + java_class = (*env)->FindClass(env, class_name); + } + else { + java_class = (*env)->GetObjectClass(env, object); + } + if (java_class == NULL) { + return 0; + } + + jmethodID methodId; + if (!jni_get_method_id_by_class(&methodId, java_class, method_name, method_signature, env)) { + return 0; + } + + *result = (*env)->CallObjectMethod(env, object, methodId, object); + return 1; +} + +int make_test_dir(const char *root, char *relpath) { + char abspath[256]; + concat(abspath, root, relpath); + + struct stat st = {0}; + return stat(abspath, &st) == -1 ? _mkdir(abspath) : 0; +} + +int write_test_file(const char *root, char *relpath, char *content) { + char abspath[256]; + concat(abspath, root, relpath); + + FILE *f; + fopen_s(&f, abspath, "w"); + if (f == NULL) { + return -1; + } + + fprintf(f, "%s", content); + fclose(f); + return 0; +} + +int create_test_repository(const char *path, const git_signature *author) { + git_repository *repo = NULL; + int error = 0; + if ((error = git_repository_init(&repo, path, 0)) < 0) + return error; + + make_test_dir(path, "a"); + write_test_file(path, ".gitattributes", "* text=auto\n"); + write_test_file(path, "one.txt", "This is file one!\n"); + write_test_file(path, "two.txt", "This is file two!\n"); + write_test_file(path, "three.txt", "This is file three!\n"); + write_test_file(path, "a/four.txt", "This is file four!\n"); + write_test_file(path, "a/five.txt", "This is file five!\n"); + + git_index *index; + if ((error = git_repository_index(&index, repo)) < 0) + return error; + + git_index_read(index, 0); + + char *match_all = "*"; + git_strarray arr; + arr.strings = &match_all; + arr.count = 1; + + if ((error = git_index_add_all(index, &arr, GIT_INDEX_ADD_DEFAULT, + NULL, NULL)) < 0) + return error; + if ((error = git_index_write(index)) < 0) + return error; + + git_oid commit_id, tree_id; + git_tree *tree = NULL; + + git_signature *sig; + git_signature_dup(&sig, author); + + if ((error = git_index_write_tree(&tree_id, index)) < 0) + return error; + if ((error = git_tree_lookup(&tree, repo, &tree_id)) < 0) + return error; + + sig->when.time = 0; + sig->when.offset = 0; + if ((error = git_commit_create_v(&commit_id, repo, "refs/heads/master", sig, sig, NULL, "Initial revision", tree, 0)) < 0) + return error; + + git_commit *parent; + git_commit_lookup(&parent, repo, &commit_id); + + write_test_file(path, "one.txt", "This is file one!!\n"); + write_test_file(path, "two.txt", "This is file two!!\n"); + write_test_file(path, "three.txt", "This is file three!!\n"); + + if ((error = git_index_add_all(index, &arr, GIT_INDEX_ADD_DEFAULT, + NULL, NULL)) < 0) + return error; + if ((error = git_index_write(index)) < 0) + return error; + + if ((error = git_index_write_tree(&tree_id, index)) < 0) + return error; + if ((error = git_tree_lookup(&tree, repo, &tree_id)) < 0) + return error; + + sig->when.time = 3600; + if ((error = git_commit_create_v(&commit_id, repo, "refs/heads/master", sig, sig, NULL, "Updated!", tree, 1, parent)) < 0) + return error; + + git_repository_free(repo); + return 0; +} + +JNIEXPORT void JNICALL +Java_org_libgit2_jagged_core_NativeTestMethods_createTestRepository( + JNIEnv *env, + jclass class, + jobject path_java, + jobject signature_java) { + assert(env); + assert(class); + assert(path_java); + + const char *path = NULL; + if ((path = git_java_jstring_to_utf8(env, path_java)) == NULL) + return; + + jobject name_java, email_java; + if (jni_call_object_method(&name_java, signature_java, "org/libgit2/jagged/Signature", "getName", "()Ljava/lang/String;", env) < 0 || + jni_call_object_method(&email_java, signature_java, "org/libgit2/jagged/Signature", "getEmail", "()Ljava/lang/String;", env) < 0) + return; + + const char *name, *email; + if ((name = git_java_jstring_to_utf8(env, name_java)) == NULL || + (email = git_java_jstring_to_utf8(env, email_java)) == NULL) + return; + + int error = 0; + git_signature *signature; + git_time_t time = 0; + if ((error = git_signature_new(&signature, name, email, time, 0)) < 0) + git_java_exception_throw_giterr(env, error); + + if ((error = create_test_repository(path, signature) < 0)) + git_java_exception_throw_giterr(env, error); + + git_java_utf8_free(env, path_java, path); +} diff --git a/src/test/native/libjagged_test/testutil.c b/src/test/native/libjagged_test/testutil.c new file mode 100644 index 0000000..daccc21 --- /dev/null +++ b/src/test/native/libjagged_test/testutil.c @@ -0,0 +1,8 @@ +#include + +void concat(char *dst, const char *src1, const char *src2) { + strcpy_s(dst, 256, ""); + strcat_s(dst, 256, src1); + strcat_s(dst, 256, "/"); + strcat_s(dst, 256, src2); +} diff --git a/src/test/native/libjagged_test/testutil.h b/src/test/native/libjagged_test/testutil.h new file mode 100644 index 0000000..4fcd338 --- /dev/null +++ b/src/test/native/libjagged_test/testutil.h @@ -0,0 +1,3 @@ +#include + +void concat(char *dst, const char *src1, const char *src2); diff --git a/src/test/resources/testrepo/.gitattributes b/src/test/resources/testrepo/.gitattributes deleted file mode 100644 index 176a458..0000000 --- a/src/test/resources/testrepo/.gitattributes +++ /dev/null @@ -1 +0,0 @@ -* text=auto diff --git a/src/test/resources/testrepo/.gitted/HEAD b/src/test/resources/testrepo/.gitted/HEAD deleted file mode 100644 index cb089cd..0000000 --- a/src/test/resources/testrepo/.gitted/HEAD +++ /dev/null @@ -1 +0,0 @@ -ref: refs/heads/master diff --git a/src/test/resources/testrepo/.gitted/config b/src/test/resources/testrepo/.gitted/config deleted file mode 100644 index af10792..0000000 --- a/src/test/resources/testrepo/.gitted/config +++ /dev/null @@ -1,6 +0,0 @@ -[core] - repositoryformatversion = 0 - filemode = true - bare = false - logallrefupdates = true - ignorecase = true diff --git a/src/test/resources/testrepo/.gitted/description b/src/test/resources/testrepo/.gitted/description deleted file mode 100644 index 498b267..0000000 --- a/src/test/resources/testrepo/.gitted/description +++ /dev/null @@ -1 +0,0 @@ -Unnamed repository; edit this file 'description' to name the repository. diff --git a/src/test/resources/testrepo/.gitted/index b/src/test/resources/testrepo/.gitted/index deleted file mode 100644 index deda49e860a825bceef3cd9a71a27b73810ef2a0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 361 zcmZ?q402{*U|<4bmavPWXMr>WjAjIiG0VycGcYtRVPIhV3X~E7Vjl4<*ZwIFUIi7M zOFx|bnLGRCsc*^*e0u4bC5a^^MVU#ZC8@msnfIm_}B*KZxYbDR-=44fqy zMX3;zaG1l2W{&W*725m4wo4p2667f$a#D77^6IWi2KJKje5iXuf?QpJ&XQy>Q83^- uxLADU%u4o`DxnSAcCUQ=u^*#H11KxAqF diff --git a/src/test/resources/testrepo/.gitted/info/exclude b/src/test/resources/testrepo/.gitted/info/exclude deleted file mode 100644 index a5196d1..0000000 --- a/src/test/resources/testrepo/.gitted/info/exclude +++ /dev/null @@ -1,6 +0,0 @@ -# git ls-files --others --exclude-from=.git/info/exclude -# Lines that start with '#' are comments. -# For a project mostly in C, the following would be a good set of -# exclude patterns (uncomment them if you want to use them): -# *.[oa] -# *~ diff --git a/src/test/resources/testrepo/.gitted/logs/HEAD b/src/test/resources/testrepo/.gitted/logs/HEAD deleted file mode 100644 index bfdc00d..0000000 --- a/src/test/resources/testrepo/.gitted/logs/HEAD +++ /dev/null @@ -1,3 +0,0 @@ -0000000000000000000000000000000000000000 055fe18dd1aef07991ebd08b4d54fc761dd022fb Edward Thomson 1367986388 -0500 commit (initial): Initial revision -055fe18dd1aef07991ebd08b4d54fc761dd022fb 5eab02d63a3676df528bcd878ac935ec0c4d5bdc Edward Thomson 1387241114 -0500 commit: Updated! -5eab02d63a3676df528bcd878ac935ec0c4d5bdc 5fa5363e9ca45dd8fbf2be90a6898f40332f72b9 Edward Thomson 1456543187 -0500 commit: Add gitattributes diff --git a/src/test/resources/testrepo/.gitted/logs/refs/heads/master b/src/test/resources/testrepo/.gitted/logs/refs/heads/master deleted file mode 100644 index bfdc00d..0000000 --- a/src/test/resources/testrepo/.gitted/logs/refs/heads/master +++ /dev/null @@ -1,3 +0,0 @@ -0000000000000000000000000000000000000000 055fe18dd1aef07991ebd08b4d54fc761dd022fb Edward Thomson 1367986388 -0500 commit (initial): Initial revision -055fe18dd1aef07991ebd08b4d54fc761dd022fb 5eab02d63a3676df528bcd878ac935ec0c4d5bdc Edward Thomson 1387241114 -0500 commit: Updated! -5eab02d63a3676df528bcd878ac935ec0c4d5bdc 5fa5363e9ca45dd8fbf2be90a6898f40332f72b9 Edward Thomson 1456543187 -0500 commit: Add gitattributes diff --git a/src/test/resources/testrepo/.gitted/objects/05/5fe18dd1aef07991ebd08b4d54fc761dd022fb b/src/test/resources/testrepo/.gitted/objects/05/5fe18dd1aef07991ebd08b4d54fc761dd022fb deleted file mode 100644 index 4077e3bd23c713fb37a852ef7d0033522b7e65f8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 138 zcmV;50CoR(0i}&W4#FT106p`H{eT8a=ynrhym;{L2PiBliF6Y{{l54HZ<9I91SutV zFys!sG6N&})r8q5o7Tt_948{2$ddOO4Qew*3|jeD-=xAVeteDa*rYVs;mpJS=vs29 s(j@g$ka7WIXQXAe%K}I3v{u88apyl0>b~cm{Szv`bIY=;FM)AE;v2t1t^fc4 diff --git a/src/test/resources/testrepo/.gitted/objects/17/6a458f94e0ea5272ce67c36bf30b6be9caf623 b/src/test/resources/testrepo/.gitted/objects/17/6a458f94e0ea5272ce67c36bf30b6be9caf623 deleted file mode 100644 index ef83166706c43aabd3c68d155be9c92a23960f0f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 28 kcmbVZP%%@=`EW:"9os~0E`%Vh .qHIɫ**~ \ No newline at end of file diff --git a/src/test/resources/testrepo/.gitted/objects/5e/ab02d63a3676df528bcd878ac935ec0c4d5bdc b/src/test/resources/testrepo/.gitted/objects/5e/ab02d63a3676df528bcd878ac935ec0c4d5bdc deleted file mode 100644 index a2e3ca14fa2452c657eb9ad0ee4364f22be05f58..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 162 zcmV;T0A2rh0i}+~4Z<)G0C~F#Qvhh!cO-=P&;b-+d)EpN$B|=1`-B?!jpi|$+-iLd zskA+e&Md9Z#R51FDd>ce3>Uz;QYDG_9&_vRPM_FGKIT@pw#WmYIRF3v diff --git a/src/test/resources/testrepo/.gitted/objects/5f/a5363e9ca45dd8fbf2be90a6898f40332f72b9 b/src/test/resources/testrepo/.gitted/objects/5f/a5363e9ca45dd8fbf2be90a6898f40332f72b9 deleted file mode 100644 index 01d2b42..0000000 --- a/src/test/resources/testrepo/.gitted/objects/5f/a5363e9ca45dd8fbf2be90a6898f40332f72b9 +++ /dev/null @@ -1,2 +0,0 @@ -xm0 E{\ lEs]GB#]<s6TM&R -OZ战}MrQQK"wT~8$Jr9&2PoQJs|ˋҷgEG_-{=}1a S&8yxi]EX` M5 \ No newline at end of file diff --git a/src/test/resources/testrepo/.gitted/objects/8f/be49af0d14c65f881b57709acae2ea3414089a b/src/test/resources/testrepo/.gitted/objects/8f/be49af0d14c65f881b57709acae2ea3414089a deleted file mode 100644 index ee567496ec5661cbef6e8f09c5cc7b01e96d9c08..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 34 qcmb7v1BkbFfcPQQP4}zEJ-XWDauSLElDkA5YKY$pYq^UP|>;c z!`Yv?vtOS2rVLe?pO>mvQc=R7%dy%ccxgz-lE+4N`x|_$ina7}p-M_JfTn{LUD#U2w{^l&pPh7us^v-cc_`wvF=Yy3@TcN!#Y`esfBSD@5A}3{MC$H|R1OQ4CJe$CW BM&AGc diff --git a/src/test/resources/testrepo/.gitted/objects/d1/796967d47949153bb852c07304d9e5f2f0040c b/src/test/resources/testrepo/.gitted/objects/d1/796967d47949153bb852c07304d9e5f2f0040c deleted file mode 100644 index 9f0d3d47151c32e6420767c4c9fc44470d2ed3b7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 32 ocmb{Y{I$;cpww#$0()wplh^rn$-c1fJ0O_m^#{d8T diff --git a/src/test/resources/testrepo/.gitted/objects/d4/bcc68acd4410bf836a39f20afb2c2ece09584e b/src/test/resources/testrepo/.gitted/objects/d4/bcc68acd4410bf836a39f20afb2c2ece09584e deleted file mode 100644 index 739f5c2d0eb15dbf23711f98e4a732c414a4694d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 35 rcmb{Y{I$;cpww#$0(mLr=jjJ9*z6pmC0Os2bF8}}l diff --git a/src/test/resources/testrepo/.gitted/objects/e7/7ab1c63f3fbde9c5ef9972939aa0717012d7c0 b/src/test/resources/testrepo/.gitted/objects/e7/7ab1c63f3fbde9c5ef9972939aa0717012d7c0 deleted file mode 100644 index 34bdb6526c63af04434617d29ef3a48408b702fc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 109 zcmV-z0FwWB0V^p=O;s>7FlR6{FfcPQQOM6r)hnqeVYpbCnSQ0xQ`CA#(1Bu>n@>M| zVBvu(Daiop0W0d?=eeF&