Show More
@@ -94,8 +94,13 class ForksController(BaseRepoController | |||||
94 | c.repo_last_rev) * 100) |
|
94 | c.repo_last_rev) * 100) | |
95 |
|
95 | |||
96 | defaults = RepoModel()._get_defaults(repo_name) |
|
96 | defaults = RepoModel()._get_defaults(repo_name) | |
|
97 | # alter the description to indicate a fork | |||
|
98 | defaults['description'] = ('fork of repository: %s \n%s' | |||
|
99 | % (defaults['repo_name'], | |||
|
100 | defaults['description'])) | |||
97 | # add suffix to fork |
|
101 | # add suffix to fork | |
98 | defaults['repo_name'] = '%s-fork' % defaults['repo_name'] |
|
102 | defaults['repo_name'] = '%s-fork' % defaults['repo_name'] | |
|
103 | ||||
99 | return defaults |
|
104 | return defaults | |
100 |
|
105 | |||
101 | @HasRepoPermissionAnyDecorator('repository.read', 'repository.write', |
|
106 | @HasRepoPermissionAnyDecorator('repository.read', 'repository.write', |
General Comments 0
You need to be logged in to leave comments.
Login now