Commits

DemonWav authored and md_5 committed d8e4840e465
Fixed logging to show where the git repo was cloned to
No tags

src/main/java/org/spigotmc/builder/Builder.java

Modified
471 471 }
472 472
473 473 public static void clone(String url, File target) throws GitAPIException
474 474 {
475 475 System.out.println( "Starting clone of " + url + " to " + target );
476 476
477 477 Git result = Git.cloneRepository().setURI( url ).setDirectory( target ).call();
478 478
479 479 try
480 480 {
481 - System.out.println( "Cloned git repository " + url + " to " + url + ". Current HEAD: " + commitHash( result ) );
481 + System.out.println( "Cloned git repository " + url + " to " + target.getAbsolutePath() + ". Current HEAD: " + commitHash( result ) );
482 482
483 483 } finally
484 484 {
485 485 result.close();
486 486 }
487 487 }
488 488
489 489 public static String commitHash(Git repo) throws GitAPIException
490 490 {
491 491 return Iterables.getOnlyElement( repo.log().setMaxCount( 1 ).call() ).getName();

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut