mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-04 20:45:58 +01:00
wiki repository name is changed from xxx-wiki.git to xxx.wiki.git.
This commit is contained in:
@@ -32,13 +32,13 @@ object WikiUtil {
|
|||||||
* Returns the directory of the wiki repository.
|
* Returns the directory of the wiki repository.
|
||||||
*/
|
*/
|
||||||
def getWikiRepositoryDir(owner: String, repository: String): File =
|
def getWikiRepositoryDir(owner: String, repository: String): File =
|
||||||
new File("%s/%s/%s-wiki.git".format(Directory.RepositoryHome, owner, repository))
|
new File("%s/%s/%s.wiki.git".format(Directory.RepositoryHome, owner, repository))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the directory of the wiki working directory which is cloned from the wiki repository.
|
* Returns the directory of the wiki working directory which is cloned from the wiki repository.
|
||||||
*/
|
*/
|
||||||
def getWikiWorkDir(owner: String, repository: String): File =
|
def getWikiWorkDir(owner: String, repository: String): File =
|
||||||
new File("%s/tmp/%s/%s-wiki".format(Directory.RepositoryHome, owner, repository))
|
new File("%s/tmp/%s/%s.wiki".format(Directory.RepositoryHome, owner, repository))
|
||||||
|
|
||||||
// TODO synchronized?
|
// TODO synchronized?
|
||||||
def createWikiRepository(owner: String, repository: String): Unit = {
|
def createWikiRepository(owner: String, repository: String): Unit = {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<li class="pull-right">
|
<li class="pull-right">
|
||||||
<div class="input-prepend">
|
<div class="input-prepend">
|
||||||
<span class="add-on">HTTP</span>
|
<span class="add-on">HTTP</span>
|
||||||
<input type="text" value="@repository.url.replaceFirst("\\.git$", "-wiki.git")" style="width: 350px;">
|
<input type="text" value="@repository.url.replaceFirst("\\.git$", ".wiki.git")" style="width: 350px;">
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
Reference in New Issue
Block a user