From: Robin Rosenberg Date: Tue, 21 Aug 2012 16:21:17 +0000 (+0200) Subject: The Git API's only likes /, not \ in paths X-Git-Tag: v2.1.0.201209190230-r~31^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fchanges%2F28%2F7328%2F1;p=jgit.git The Git API's only likes /, not \ in paths Therefore this test fails on Windows Change-Id: I4f73487b720ea1479e95108344f1dc3711106408 --- diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/StashApplyCommandTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/StashApplyCommandTest.java index 117ef88dc9..e7d66fb7f4 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/StashApplyCommandTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/StashApplyCommandTest.java @@ -425,7 +425,7 @@ public class StashApplyCommandTest extends RepositoryTestCase { public void stashChangeInANewSubdirectory() throws Exception { String subdir = "subdir"; String fname = "file2.txt"; - String path = subdir + System.getProperty("file.separator") + fname; + String path = subdir + "/" + fname; String otherBranch = "otherbranch"; writeTrashFile(subdir, fname, "content2");