diff --git a/src/main/java/de/hftstuttgart/dtabackend/utils/JGitUtil.java b/src/main/java/de/hftstuttgart/dtabackend/utils/JGitUtil.java index 19ad406c07eb4b47f57a64ed372e1b3b724c910a..8122583153683c2a9e50663231083feecdab3b14 100644 --- a/src/main/java/de/hftstuttgart/dtabackend/utils/JGitUtil.java +++ b/src/main/java/de/hftstuttgart/dtabackend/utils/JGitUtil.java @@ -58,9 +58,11 @@ public class JGitUtil { //if an optional directory parameter was given if(subDir!="") { + targetDirectory = new File(targetPath); //copy appropriate path from checkout directory to target directory FileSystemUtils.copyRecursively(targetDirectory, new File(checkoutDirectory+subDir)); } + LOG.debug(String.format("cloned from %s to %s", config.group(1), targetDirectory)); } catch (IOException e) { LOG.error(String.format("Error while cloning from %s: could not copy to unit test dir", config.group(1)), e); @@ -68,7 +70,5 @@ public class JGitUtil { catch (GitAPIException e) { LOG.error(String.format("Error while cloning from %s: could not read from Git", config.group(1)), e); } - - LOG.debug(String.format("cloned from %s to %s", config.group(1), targetDirectory)); } }