summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.ant.test/src
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.jgit.ant.test/src')
-rw-r--r--org.eclipse.jgit.ant.test/src/org/eclipse/jgit/ant/tasks/GitCloneTaskTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jgit.ant.test/src/org/eclipse/jgit/ant/tasks/GitCloneTaskTest.java b/org.eclipse.jgit.ant.test/src/org/eclipse/jgit/ant/tasks/GitCloneTaskTest.java
index 7cd5b74516..3ce0663762 100644
--- a/org.eclipse.jgit.ant.test/src/org/eclipse/jgit/ant/tasks/GitCloneTaskTest.java
+++ b/org.eclipse.jgit.ant.test/src/org/eclipse/jgit/ant/tasks/GitCloneTaskTest.java
@@ -101,7 +101,7 @@ public class GitCloneTaskTest extends LocalDiskRepositoryTestCase {
public void shouldCloneAValidGitRepository() throws Exception {
Repository repo = createBareRepository();
File directory = repo.getDirectory();
- task.setUri("file://" + directory);
+ task.setUri("file://" + directory.getAbsolutePath());
task.execute();
assertTrue(RepositoryCache.FileKey.isGitRepository(new File(dest, ".git"), FS.DETECTED));
@@ -111,7 +111,7 @@ public class GitCloneTaskTest extends LocalDiskRepositoryTestCase {
public void shouldCreateABareCloneOfAValidGitRepository() throws Exception {
Repository repo = createBareRepository();
File directory = repo.getDirectory();
- task.setUri("file://" + directory);
+ task.setUri("file://" + directory.getAbsolutePath());
task.setBare(true);
task.execute();