summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.test
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2010-06-23 10:07:44 -0700
committerShawn O. Pearce <spearce@spearce.org>2010-06-23 17:29:37 -0700
commitdc10dd6fc85e1c6c69c74ff64db8f4c8c7c4c50b (patch)
tree27b27e5fc02aa1205cc720e23850532db14378ff /org.eclipse.jgit.test
parent5ed96eb7f44edb06ebf17eece0f9679ee5713446 (diff)
downloadjgit-dc10dd6fc85e1c6c69c74ff64db8f4c8c7c4c50b.tar.gz
jgit-dc10dd6fc85e1c6c69c74ff64db8f4c8c7c4c50b.zip
Remove test of the unsupported core.legacyHeaders variable
Long ago we stopped supporting the core.legacyHeaders variable, as JGit (like C Git) stopped creating the new pack-style loose objects, rendering this variable pointless. The test is still valid, it proves we write the standard loose object format for a commit, but the variable assignment has no impact on the test so drop it from the code. Change-Id: I051336ada23033c05e86bbff73ae5d78a37b1640 Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'org.eclipse.jgit.test')
-rw-r--r--org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/T0003_Basic.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/T0003_Basic.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/T0003_Basic.java
index ce8a79ef96..80d14ced00 100644
--- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/T0003_Basic.java
+++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/T0003_Basic.java
@@ -345,11 +345,7 @@ public class T0003_Basic extends SampleDataRepositoryTestCase {
}
}
- public void test009_CreateCommitOldFormat() throws IOException,
- ConfigInvalidException {
- writeTrashFile(".git/config", "[core]\n" + "legacyHeaders=1\n");
- db.getConfig().load();
-
+ public void test009_CreateCommitOldFormat() throws IOException {
final Tree t = new Tree(db);
final FileTreeEntry f = t.addFile("i-am-a-file");
writeTrashFile(f.getName(), "and this is the data in me\n");