| | |
| | | import org.slf4j.Logger;
|
| | | import org.slf4j.LoggerFactory;
|
| | |
|
| | | import com.gitblit.manager.IRepositoryManager;
|
| | | import com.gitblit.manager.IRuntimeManager;
|
| | | import com.gitblit.models.PathModel;
|
| | | import com.gitblit.models.RefModel;
|
| | | import com.gitblit.utils.ArrayUtils;
|
| | |
| | | path = path.substring(1);
|
| | | }
|
| | |
|
| | | IStoredSettings settings = GitBlit.getManager(IRuntimeManager.class).getSettings();
|
| | | IRepositoryManager repositoryManager = GitBlit.getManager(IRepositoryManager.class);
|
| | |
|
| | | // determine repository and resource from url
|
| | | String repository = "";
|
| | | String resource = "";
|
| | |
| | | } else {
|
| | | repository = path.substring(0, slash);
|
| | | }
|
| | | r = GitBlit.self().getRepository(repository, false);
|
| | | r = repositoryManager.getRepository(repository, false);
|
| | | offset = slash + 1;
|
| | | if (offset > 0) {
|
| | | resource = path.substring(offset);
|
| | |
| | | return;
|
| | | }
|
| | |
|
| | | MarkupProcessor processor = new MarkupProcessor(GitBlit.getSettings());
|
| | | String [] encodings = GitBlit.getEncodings();
|
| | | MarkupProcessor processor = new MarkupProcessor(settings);
|
| | | String [] encodings = settings.getStrings(Keys.web.blobEncodings).toArray(new String[0]);
|
| | |
|
| | | RevTree tree = commit.getTree();
|
| | |
|