Skip to content

Commit 47ec2d4

Browse files
committed
Copy only LFS dir and insert default priorities in forking repository
1 parent 31160f4 commit 47ec2d4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/scala/gitbucket/core/controller/AccountController.scala

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)