diff --git a/RepositoryMinerForGit/src/main/java/Test.java b/RepositoryMinerForGit/src/main/java/Test.java index 881a4a2..aa80632 100644 --- a/RepositoryMinerForGit/src/main/java/Test.java +++ b/RepositoryMinerForGit/src/main/java/Test.java @@ -33,6 +33,8 @@ String acanthus_client = "http://nitta-lab-www.is.konan-u.ac.jp/gitbucket/git/nitta-lab-2021/org.ntlab.acanthus_client.git"; String acanthus_server = "http://nitta-lab-www.is.konan-u.ac.jp/gitbucket/git/nitta-lab-2021/org.ntlab.acanthus_server.git"; + int commitCount = 0; + // TODO Auto-generated method stub try { Repository repo = new FileRepository( "./project/.git" ); @@ -51,7 +53,7 @@ System.out.println("projectフォルダが存在しません"); } - git.cloneRepository().setURI( acanthus_client ).setDirectory( project ).call(); + git.cloneRepository().setURI( acanthus_server ).setDirectory( project ).call(); } PlotWalk revWalk = new PlotWalk(repo); @@ -97,6 +99,8 @@ // System.out.println("変更の内容: " + entry); } } + commitCount += 1; + System.out.println("探索コミット数: "+commitCount); System.out.println("====="); } } catch (IOException e) {