Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
rymsha committed Jul 19, 2023
1 parent e0c8e46 commit c2f5cc3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/main/java/com/enonic/site/developer/tools/Build.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,8 @@ public static void main( String[] args )
{
for ( GetVersionsCommand.VersionJson versionJson : versionsJson.getVersions() )
{
String name = versionJson.getCheckout();
if ( name.equals( "master" ) )
{
name = "refs/heads/master";
}
git.checkout().setName( name ).call();
final String name = versionJson.getCheckout();
git.checkout().setForced( true ).setCreateBranch( true ).setForceRefUpdate( true ).setName( name ).call();
final Path adocBuildPath = Path.of( "build", "docs", versionJson.getLabel() );
Files.createDirectories( adocBuildPath );
copy( docsPath, adocBuildPath );
Expand Down

0 comments on commit c2f5cc3

Please sign in to comment.