Skip to content

Commit b2cc2da

Browse files
author
Nicolas Rodriguez
committed
Set extra_info field when auto-creating repo with project
1 parent 8af830f commit b2cc2da

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: lib/redmine_git_hosting/patches/projects_controller_patch.rb

+2
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ def git_repo_init
120120
# Create new repository
121121
repository = Repository.factory("Git")
122122
repository.is_default = true
123+
repository.extra_info = {}
124+
repository.extra_info['extra_report_last_commit'] = '1'
123125
@project.repositories << repository
124126

125127
options = { :create_readme_file => RedmineGitolite::ConfigRedmine.get_setting(:init_repositories_on_create, true) }

0 commit comments

Comments
 (0)