File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/main/scala/gitbucket/core/controller Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -594,6 +594,8 @@ trait AccountControllerBase extends AccountManagementControllerBase {
594594
595595 // Insert default labels
596596 insertDefaultLabels(accountName, repository.name)
597+ // Insert default priorities
598+ insertDefaultPriorities(accountName, repository.name)
597599
598600 // clone repository actually
599601 JGitUtil .cloneRepository(
@@ -604,12 +606,10 @@ trait AccountControllerBase extends AccountManagementControllerBase {
604606 JGitUtil .cloneRepository(getWikiRepositoryDir(repository.owner, repository.name),
605607 FileUtil .deleteIfExists(getWikiRepositoryDir(accountName, repository.name)))
606608
607- // Copy files
608- val repositoryFilesDir = getRepositoryFilesDir(repository.owner, repository.name)
609- if (repositoryFilesDir.exists){
610- FileUtils .copyDirectory(
611- repositoryFilesDir,
612- FileUtil .deleteIfExists(getRepositoryFilesDir(accountName, repository.name)))
609+ // Copy LFS files
610+ val lfsDir = getLfsDir(repository.owner, repository.name)
611+ if (lfsDir.exists){
612+ FileUtils .copyDirectory(lfsDir, FileUtil .deleteIfExists(getLfsDir(accountName, repository.name)))
613613 }
614614
615615 // Record activity
You can’t perform that action at this time.
0 commit comments