| | |
| | |
|
| | | // Experimental
|
| | | // runNativeScript(rp, "hooks/post-receive", commands);
|
| | | |
| | | // Update the Lucene search index
|
| | | GitBlit.self().updateLuceneIndex(repository);
|
| | | }
|
| | |
|
| | | /**
|
| | |
| | | protected RepositoryModel getRepositoryModel(ReceivePack rp) {
|
| | | Repository repository = rp.getRepository();
|
| | | String rootPath = GitBlit.getRepositoriesFolder().getAbsolutePath();
|
| | | String repositoryName = repository.getDirectory().getAbsolutePath();
|
| | | repositoryName = repositoryName.substring(rootPath.length() + 1);
|
| | | String repositoryName = StringUtils.getRelativePath(rootPath, repository.getDirectory()
|
| | | .getAbsolutePath());
|
| | | RepositoryModel model = GitBlit.self().getRepositoryModel(repositoryName);
|
| | | return model;
|
| | | }
|