]> source.dussan.org Git - jgit.git/commitdiff
The Git API's only likes /, not \ in paths 28/7328/1
authorRobin Rosenberg <roro01@handelsbanken.se>
Tue, 21 Aug 2012 16:21:17 +0000 (18:21 +0200)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Tue, 21 Aug 2012 17:43:59 +0000 (19:43 +0200)
Therefore this test fails on Windows

Change-Id: I4f73487b720ea1479e95108344f1dc3711106408

org.eclipse.jgit.test/tst/org/eclipse/jgit/api/StashApplyCommandTest.java

index 117ef88dc974a8e29e80140f0b4c1b34bc083bb9..e7d66fb7f43799fa4edb65bbbd64b471c7aa3de6 100644 (file)
@@ -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");