Browse Source

Fix issue with pulling a file identical to an existing file

Winston Li 11 years ago
parent
commit
f2701568f6

+ 1 - 1
services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/data/model/ResourceFetcher.java

@@ -38,7 +38,7 @@ public class ResourceFetcher {
             Util.sout("At (" + projectName + "): " + path);
             contents = new RepositoryObjectTreeWalker(repository).getDirectoryContents().getFileTable().get(path).getContents();
         }
-        return new RepositoryFile(path, contents);
+        return new RepositoryFile(newPath, contents);
     }
 
     private byte[] fetch(String projectName, final String url, String path) throws FailedConnectionException {