From f2701568f6bccdf5712c68d12eea000351018767 Mon Sep 17 00:00:00 2001 From: Winston Li Date: Tue, 4 Aug 2015 20:06:06 +0100 Subject: [PATCH] Fix issue with pulling a file identical to an existing file --- .../java/uk/ac/ic/wlgitbridge/data/model/ResourceFetcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {