| | |
| | | import org.eclipse.jgit.revwalk.RevCommit;
|
| | |
|
| | | import com.gitblit.Constants;
|
| | | import com.gitblit.manager.IRepositoryManager; |
| | | import com.gitblit.manager.IRuntimeManager; |
| | | import com.gitblit.utils.JGitUtils;
|
| | | import com.google.inject.Inject; |
| | | import com.google.inject.Singleton; |
| | |
|
| | | /**
|
| | | * Serves the content of a gh-pages branch.
|
| | |
| | | * @author James Moger
|
| | | *
|
| | | */
|
| | | @Singleton |
| | | public class PagesServlet extends RawServlet {
|
| | |
|
| | | private static final long serialVersionUID = 1L;
|
| | |
| | | return baseURL + Constants.PAGES + repository + "/" + (path == null ? "" : ("/" + path));
|
| | | }
|
| | |
|
| | | @Inject |
| | | public PagesServlet( |
| | | IRuntimeManager runtimeManager, |
| | | IRepositoryManager repositoryManager) { |
| | | |
| | | super(runtimeManager, repositoryManager); |
| | | } |
| | | |
| | | @Override
|
| | | protected String getBranch(String repository, HttpServletRequest request) {
|
| | | return "gh-pages";
|