Skip to content
Snippets Groups Projects
Commit 9b271d02 authored by Florian Heck's avatar Florian Heck
Browse files

added logging in repo import

parent b3b16374
No related branches found
No related tags found
No related merge requests found
......@@ -138,7 +138,7 @@ public class GitWrapper extends ToolWrapper {
return Optional.empty();
}
// TODO add fallback method for determining URL, add Logging
// TODO add fallback method for determining URL
Optional<ExecRes> result = exec(directory, "config", "--get", "remote.origin.url");
Optional<String> url = result.map(res -> {
......@@ -146,6 +146,7 @@ public class GitWrapper extends ToolWrapper {
if (failed(res) || (repoUrl = res.getStdOutTrimmed()).isEmpty()) {
// there was no remote url
LOG.fine(String.format("Repository %s does not hab an origin url, using the local path", directory));
repoUrl = directory.getAbsolutePath();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment