Commits

md_5 authored 4f5fd2d5b60
Check out experimental refs properly
No tags

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

Modified
868 868 } else
869 869 {
870 870 result = repo.fetch().call();
871 871 }
872 872
873 873 System.out.println( "Successfully fetched updates!" );
874 874
875 875 if ( pullRequest != null )
876 876 {
877 877 repo.checkout().setName( "origin/pr/" + pullRequest.getId() ).setForced( true ).call();
878 + } else if ( ref.equals( "experimental" ) )
879 + {
880 + repo.checkout().setName( "origin/experimental" ).setForced( true ).call();
878 881 } else
879 882 {
880 883 repo.reset().setRef( ref ).setMode( ResetCommand.ResetType.HARD ).call();
881 884 }
882 885
883 886 if ( ref.equals( "master" ) )
884 887 {
885 888 repo.reset().setRef( "origin/master" ).setMode( ResetCommand.ResetType.HARD ).call();
886 889 }
887 890 System.out.println( "Checked out: " + ref );

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

Add shortcut