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 deda49e..0000000 Binary files a/src/test/resources/testrepo/.gitted/index and /dev/null differ 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 4077e3b..0000000 Binary files a/src/test/resources/testrepo/.gitted/objects/05/5fe18dd1aef07991ebd08b4d54fc761dd022fb and /dev/null differ 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 ef83166..0000000 Binary files a/src/test/resources/testrepo/.gitted/objects/17/6a458f94e0ea5272ce67c36bf30b6be9caf623 and /dev/null differ diff --git a/src/test/resources/testrepo/.gitted/objects/2d/08ab4853a55488a4e3323ebf804c3a732a2f6d b/src/test/resources/testrepo/.gitted/objects/2d/08ab4853a55488a4e3323ebf804c3a732a2f6d deleted file mode 100644 index 0eb9d54..0000000 Binary files a/src/test/resources/testrepo/.gitted/objects/2d/08ab4853a55488a4e3323ebf804c3a732a2f6d and /dev/null differ diff --git a/src/test/resources/testrepo/.gitted/objects/57/cf500670b83b1ad4d86db6436bb91531cf3e27 b/src/test/resources/testrepo/.gitted/objects/57/cf500670b83b1ad4d86db6436bb91531cf3e27 deleted file mode 100644 index d4c04a6..0000000 --- a/src/test/resources/testrepo/.gitted/objects/57/cf500670b83b1ad4d86db6436bb91531cf3e27 +++ /dev/null @@ -1 +0,0 @@ -x+)JMU040g040031QK+(aX4cc# >VZP%%@=`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 a2e3ca1..0000000 Binary files a/src/test/resources/testrepo/.gitted/objects/5e/ab02d63a3676df528bcd878ac935ec0c4d5bdc and /dev/null differ 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 ee56749..0000000 Binary files a/src/test/resources/testrepo/.gitted/objects/8f/be49af0d14c65f881b57709acae2ea3414089a and /dev/null differ diff --git a/src/test/resources/testrepo/.gitted/objects/96/a82bbe56b718c4c452491014c91d9b63ab8a79 b/src/test/resources/testrepo/.gitted/objects/96/a82bbe56b718c4c452491014c91d9b63ab8a79 deleted file mode 100644 index 3a7aa1b..0000000 Binary files a/src/test/resources/testrepo/.gitted/objects/96/a82bbe56b718c4c452491014c91d9b63ab8a79 and /dev/null differ diff --git a/src/test/resources/testrepo/.gitted/objects/c1/a317a9997907e9245580b6bba9ede7874a5967 b/src/test/resources/testrepo/.gitted/objects/c1/a317a9997907e9245580b6bba9ede7874a5967 deleted file mode 100644 index 5841665..0000000 Binary files a/src/test/resources/testrepo/.gitted/objects/c1/a317a9997907e9245580b6bba9ede7874a5967 and /dev/null differ 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 9f0d3d4..0000000 Binary files a/src/test/resources/testrepo/.gitted/objects/d1/796967d47949153bb852c07304d9e5f2f0040c and /dev/null differ 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 739f5c2..0000000 Binary files a/src/test/resources/testrepo/.gitted/objects/d4/bcc68acd4410bf836a39f20afb2c2ece09584e and /dev/null differ diff --git a/src/test/resources/testrepo/.gitted/objects/dc/48b6c38e967e57965e36c6f7a1c3ec5c3e1ff4 b/src/test/resources/testrepo/.gitted/objects/dc/48b6c38e967e57965e36c6f7a1c3ec5c3e1ff4 deleted file mode 100644 index 944d74b..0000000 Binary files a/src/test/resources/testrepo/.gitted/objects/dc/48b6c38e967e57965e36c6f7a1c3ec5c3e1ff4 and /dev/null differ 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 34bdb65..0000000 Binary files a/src/test/resources/testrepo/.gitted/objects/e7/7ab1c63f3fbde9c5ef9972939aa0717012d7c0 and /dev/null differ diff --git a/src/test/resources/testrepo/.gitted/refs/heads/master b/src/test/resources/testrepo/.gitted/refs/heads/master deleted file mode 100644 index de7dfeb..0000000 --- a/src/test/resources/testrepo/.gitted/refs/heads/master +++ /dev/null @@ -1 +0,0 @@ -5fa5363e9ca45dd8fbf2be90a6898f40332f72b9 diff --git a/src/test/resources/testrepo/one.txt b/src/test/resources/testrepo/one.txt deleted file mode 100644 index 2d08ab4..0000000 --- a/src/test/resources/testrepo/one.txt +++ /dev/null @@ -1 +0,0 @@ -This is file one!! diff --git a/src/test/resources/testrepo/three.txt b/src/test/resources/testrepo/three.txt deleted file mode 100644 index d4bcc68..0000000 --- a/src/test/resources/testrepo/three.txt +++ /dev/null @@ -1 +0,0 @@ -This is file three!! diff --git a/src/test/resources/testrepo/two.txt b/src/test/resources/testrepo/two.txt deleted file mode 100644 index 96a82bb..0000000 --- a/src/test/resources/testrepo/two.txt +++ /dev/null @@ -1 +0,0 @@ -This is file two!!