Fix issue with pulling a file identical to an existing file

This commit is contained in:
Winston Li 2015-08-04 20:06:06 +01:00
parent 98007ae64c
commit f2701568f6

View file

@ -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 {