From 8c0610b4bb3b1c67027f6d1dbdd7ce831c05a420 Mon Sep 17 00:00:00 2001 From: Georg Seibt <seibt@fim.uni-passau.de> Date: Mon, 11 Apr 2016 23:33:08 +0200 Subject: [PATCH] typo fixes --- src/de/uni_passau/fim/seibt/gitwrapper/repo/Git.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/de/uni_passau/fim/seibt/gitwrapper/repo/Git.java b/src/de/uni_passau/fim/seibt/gitwrapper/repo/Git.java index 75fe15b..f223ccb 100644 --- a/src/de/uni_passau/fim/seibt/gitwrapper/repo/Git.java +++ b/src/de/uni_passau/fim/seibt/gitwrapper/repo/Git.java @@ -18,6 +18,7 @@ public class Git { public static final int EXIT_FAIL = 1; private static final Logger LOG = Logger.getLogger(Git.class.getCanonicalName()); + private static final Pattern CLONING_INTO = Pattern.compile("Cloning into '(.*)'\\.\\.\\."); private class ExecRes { @@ -53,14 +54,14 @@ public class Git { Matcher matcher = CLONING_INTO.matcher(sc.nextLine()); if (!matcher.find()) { - LOG.warning(() -> String.format("Unexpected output while cloning '%s'", url)); + LOG.warning(() -> String.format("Unexpected output while cloning '%s'.", url)); return null; } String name = matcher.group(1); File repoDir = new File(parentDir, name); - LOG.fine(() -> "Cloned " + url + " into " + repoDir.getAbsolutePath()); + LOG.fine(() -> String.format("Cloned '%s' into '%s'.", url, repoDir.getAbsolutePath())); return new Repository(this, url, repoDir); }; -- GitLab