mirror of
				https://github.com/gitbucket/gitbucket.git
				synced 2025-10-31 18:46:28 +01:00 
			
		
		
		
	Merge branch 'master' into fork-and-pullreq
Conflicts: src/main/scala/app/CreateRepositoryController.scala src/main/scala/service/WikiService.scala src/main/scala/util/JGitUtil.scala
This commit is contained in:
		| @@ -69,9 +69,13 @@ trait CreateRepositoryControllerBase extends ControllerBase { | ||||
|         // Create README.md | ||||
|         FileUtils.writeStringToFile(new File(tmpdir, "README.md"), | ||||
|           if(form.description.nonEmpty){ | ||||
|             form.name + "\n===============\n\n" + form.description.get | ||||
|             form.name + "\n" + | ||||
|             "===============\n" + | ||||
|             "\n" + | ||||
|             form.description.get | ||||
|           } else { | ||||
|             form.name + "\n===============\n" | ||||
|             form.name + "\n" + | ||||
|             "===============\n" | ||||
|           }, "UTF-8") | ||||
|  | ||||
|         val git = Git.open(tmpdir) | ||||
| @@ -91,7 +95,7 @@ trait CreateRepositoryControllerBase extends ControllerBase { | ||||
|     recordCreateRepositoryActivity(loginUserName, form.name, loginUserName) | ||||
|  | ||||
|     // redirect to the repository | ||||
|     redirect("/%s/%s".format(loginUserName, form.name)) | ||||
|     redirect(s"/${loginUserName}/${form.name}") | ||||
|   }) | ||||
|  | ||||
|   post("/:owner/:repository/_fork")(referrersOnly { repository => | ||||
|   | ||||
		Reference in New Issue
	
	Block a user