diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2011-04-10 01:02:29 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2011-04-10 01:02:29 +0200 |
commit | ea0f2f9e39a743a90a9dcdf3341ff907a0ec83d3 (patch) | |
tree | 271752b478604cf9fd00475e23c4cdadfbcf7836 /org.eclipse.jgit.test | |
parent | 5dbef3fa51053b37f68b44ed390cab6dc8336dcc (diff) | |
download | jgit-ea0f2f9e39a743a90a9dcdf3341ff907a0ec83d3.tar.gz jgit-ea0f2f9e39a743a90a9dcdf3341ff907a0ec83d3.zip |
Create all test data in trash folder
This ensures that all test data is separated from project sources and
cleaned up after the test. Previously the cloned bare test repository
was created in org.eclipse.jgit.test/ and not deleted after the test
run.
Change-Id: I55110442e365fc8fe610f1c372f72a71ee6e1412
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.test')
-rw-r--r-- | org.eclipse.jgit.test/tst/org/eclipse/jgit/api/GitConstructionTest.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/GitConstructionTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/GitConstructionTest.java index 4075586b51..0e0b18732b 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/GitConstructionTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/GitConstructionTest.java @@ -68,7 +68,8 @@ public class GitConstructionTest extends RepositoryTestCase { git.commit().setMessage("Initial commit").call(); bareRepo = Git.cloneRepository().setBare(true) - .setURI(db.getDirectory().toURI().toString()).call() + .setURI(db.getDirectory().toURI().toString()) + .setDirectory(createUniqueTestGitDir(true)).call() .getRepository(); } |