| | |
| | | import org.eclipse.jgit.lib.Repository;
|
| | | import org.eclipse.jgit.storage.file.FileRepository;
|
| | |
|
| | | import com.gitblit.FileLoginService;
|
| | | import com.gitblit.FileSettings;
|
| | | import com.gitblit.GitBlit;
|
| | | import com.gitblit.GitBlitException;
|
| | | import com.gitblit.JettyLoginService;
|
| | | import com.gitblit.models.RepositoryModel;
|
| | | import com.gitblit.utils.JGitUtils;
|
| | |
|
| | |
| | | protected void setUp() throws Exception {
|
| | | FileSettings settings = new FileSettings("distrib/gitblit.properties");
|
| | | GitBlit.self().configureContext(settings);
|
| | | JettyLoginService loginService = new JettyLoginService(new File("distrib/users.properties"));
|
| | | loginService.loadUsers();
|
| | | FileLoginService loginService = new FileLoginService(new File("distrib/users.properties"));
|
| | | GitBlit.self().setLoginService(loginService);
|
| | |
|
| | | if (REPOSITORIES.exists() || REPOSITORIES.mkdirs()) {
|