Skip to content

Commit

Permalink
BZ1263454: Unable to create Project in cloned Git Repository
Browse files Browse the repository at this point in the history
    - addtional commit to the BZ fixing to ensure just created reposiories are unmanaged

(cherry picked from commit 17093d1)
  • Loading branch information
wmedvede committed Sep 25, 2015
1 parent 3d7b576 commit 63aa862
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Expand Up @@ -22,6 +22,7 @@

import org.guvnor.structure.repositories.Repository;
import org.guvnor.structure.repositories.RepositoryService;
import org.guvnor.structure.repositories.EnvironmentParameters;
import org.jboss.weld.environment.se.WeldContainer;
import org.kie.config.cli.CliContext;
import org.kie.config.cli.command.CliCommand;
Expand Down Expand Up @@ -79,6 +80,8 @@ public String execute( CliContext context ) {
env.put( "origin", origin );
}

env.put( EnvironmentParameters.MANAGED, false );

//Mark this Repository as being created by the kie-config-cli tool. This has no affect on the operation
//of the Repository in the workbench, but it does indicate to kie-config-cli that the Repository should
//not have its origin overridden when cloning. A local clone is required to manipulate Projects.
Expand Down
Expand Up @@ -24,7 +24,7 @@
import javax.inject.Inject;
import javax.inject.Named;

import org.guvnor.structure.backend.repositories.EnvironmentParameters;
import org.guvnor.structure.repositories.EnvironmentParameters;
import org.guvnor.structure.repositories.PublicURI;
import org.guvnor.structure.repositories.Repository;
import org.guvnor.structure.repositories.impl.DefaultPublicURI;
Expand Down

0 comments on commit 63aa862

Please sign in to comment.