mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-02 11:36:05 +01:00
Add context path to repository URL.
This commit is contained in:
@@ -121,7 +121,7 @@ class RepositoryViewerServlet extends ServletBase {
|
||||
def getRepositoryInfo(owner: String, repository: String): RepositoryInfo = {
|
||||
val git = Git.open(getRepositoryDir(owner, repository))
|
||||
RepositoryInfo(
|
||||
owner, repository, "http://localhost:8080/git/%s/%s.git".format(owner, repository),
|
||||
owner, repository, "http://localhost:8080%s/git/%s/%s.git".format(servletContext.getContextPath, owner, repository),
|
||||
// branches
|
||||
git.branchList.call.toArray.map { ref =>
|
||||
ref.asInstanceOf[Ref].getName.replaceFirst("^refs/heads/", "")
|
||||
|
||||
Reference in New Issue
Block a user