From 5d7641f1293b7822f788f269fd1017739031eeea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Pfeuffer?= Date: Tue, 9 Jun 2020 13:34:40 +0200 Subject: [PATCH] Use source branch for lines --- .../scm/api/v2/resources/DiffResultToDiffResultDtoMapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/DiffResultToDiffResultDtoMapper.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/DiffResultToDiffResultDtoMapper.java index 03d1293083..0384ed7d45 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/DiffResultToDiffResultDtoMapper.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/DiffResultToDiffResultDtoMapper.java @@ -56,7 +56,7 @@ class DiffResultToDiffResultDtoMapper { public DiffResultDto mapForIncoming(Repository repository, DiffResult result, String source, String target) { DiffResultDto dto = new DiffResultDto(linkingTo().self(resourceLinks.incoming().diffParsed(repository.getNamespace(), repository.getName(), source, target)).build()); - setFiles(result, dto, repository, target); + setFiles(result, dto, repository, source); return dto; }