diff --git a/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/data/model/ResourceFetcher.java b/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/data/model/ResourceFetcher.java index 52a19c1f2c..4ec8627734 100644 --- a/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/data/model/ResourceFetcher.java +++ b/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 {