mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-07 05:55:51 +01:00
Fix initial README.md content.
This commit is contained in:
@@ -57,8 +57,9 @@ trait CreateRepositoryControllerBase extends ControllerBase {
|
|||||||
Git.cloneRepository.setURI(gitdir.toURI.toString).setDirectory(tmpdir).call
|
Git.cloneRepository.setURI(gitdir.toURI.toString).setDirectory(tmpdir).call
|
||||||
|
|
||||||
// Create README.md
|
// Create README.md
|
||||||
FileUtils.writeStringToFile(new File(tmpdir, "README.md"), if(form.description.nonEmpty){
|
FileUtils.writeStringToFile(new File(tmpdir, "README.md"),
|
||||||
form.name + "\n===============\n\n" + form.description
|
if(form.description.nonEmpty){
|
||||||
|
form.name + "\n===============\n\n" + form.description.get
|
||||||
} else {
|
} else {
|
||||||
form.name + "\n===============\n"
|
form.name + "\n===============\n"
|
||||||
}, "UTF-8")
|
}, "UTF-8")
|
||||||
|
|||||||
Reference in New Issue
Block a user