aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.test/tst/org/eclipse/jgit/storage
diff options
context:
space:
mode:
authorTomasz Zarna <Tomasz.Zarna@pl.ibm.com>2012-01-02 13:24:36 +0100
committerMatthias Sohn <matthias.sohn@sap.com>2012-01-02 13:24:36 +0100
commit5d95cd9418a20ff72930d4549429d778181eb9ed (patch)
tree7052a6b8e05edf6e87bc05e8a27f8142cb0437ed /org.eclipse.jgit.test/tst/org/eclipse/jgit/storage
parent617c5d91da98a09d94b012b4547164bebbf290d1 (diff)
downloadjgit-5d95cd9418a20ff72930d4549429d778181eb9ed.tar.gz
jgit-5d95cd9418a20ff72930d4549429d778181eb9ed.zip
Add constant for default name for the Git repo configuration
Change-Id: I5a6ef686c444fb1e46c9f784bad01165471ef372 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.test/tst/org/eclipse/jgit/storage')
-rw-r--r--org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/RepositorySetupWorkDirTest.java2
-rw-r--r--org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/T0003_BasicTest.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/RepositorySetupWorkDirTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/RepositorySetupWorkDirTest.java
index 8affb01f21..f98ae49572 100644
--- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/RepositorySetupWorkDirTest.java
+++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/RepositorySetupWorkDirTest.java
@@ -211,7 +211,7 @@ public class RepositorySetupWorkDirTest extends LocalDiskRepositoryTestCase {
private FileBasedConfig configFor(File gitDir) throws IOException,
ConfigInvalidException {
- File configPath = new File(gitDir, "config");
+ File configPath = new File(gitDir, Constants.CONFIG);
FileBasedConfig cfg = new FileBasedConfig(configPath, FS.DETECTED);
cfg.load();
return cfg;
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/T0003_BasicTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/T0003_BasicTest.java
index 408bb93035..4ed04ef40e 100644
--- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/T0003_BasicTest.java
+++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/T0003_BasicTest.java
@@ -326,7 +326,7 @@ public class T0003_BasicTest extends SampleDataRepositoryTestCase {
@Test
public void test006_ReadUglyConfig() throws IOException,
ConfigInvalidException {
- final File cfg = new File(db.getDirectory(), "config");
+ final File cfg = new File(db.getDirectory(), Constants.CONFIG);
final FileBasedConfig c = new FileBasedConfig(cfg, db.getFS());
final String configStr = " [core];comment\n\tfilemode = yes\n"
+ "[user]\n"
@@ -361,7 +361,7 @@ public class T0003_BasicTest extends SampleDataRepositoryTestCase {
@Test
public void test008_FailOnWrongVersion() throws IOException {
- final File cfg = new File(db.getDirectory(), "config");
+ final File cfg = new File(db.getDirectory(), Constants.CONFIG);
final String badvers = "ihopethisisneveraversion";
final String configStr = "[core]\n" + "\trepositoryFormatVersion="
+ badvers + "\n";