We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c7c677 commit 3978c41Copy full SHA for 3978c41
core/src/main/scala/com/codacy/analysis/core/git/Repository.scala
@@ -18,10 +18,10 @@ class Repository(repository: JGitRepository) {
18
val revCommit = gitLog.iterator().next()
19
20
new Commit(repository, revCommit)
21
+ } catch (GitAPIException | IOException e) {
22
+ System.err.println("An error occurred while getting the latest commit: " + e.getMessage());
23
+ e.printStackTrace();
24
}
- catch (GitAPIException | IOException e) {
- System.err.println("An error occurred while getting the latest commit: " + e.getMessage());
- e.printStackTrace();
25
26
27
def uncommitedFiles: Try[Set[String]] = {
@@ -32,5 +32,4 @@ class Repository(repository: JGitRepository) {
32
javaSet.asScala.toSet
33
34
35
-
36
0 commit comments