Skip to content

Commit 2fa6268

Browse files
author
root
committed
Merge branch 'devel' into v1.0.x
2 parents fb5578a + 6cc427f commit 2fa6268

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This plugin allows straightforward management of Gitolite within Redmine.
1313

1414
You can follow announcements [here](https://jbox-web.github.io/redmine_git_hosting/news/) or take a look at the [roadmap](https://jbox-web.github.io/redmine_git_hosting/about/roadmap/).
1515

16-
**[Latest stable version : 1.0.2](https://jbox-web.github.io/redmine_git_hosting/about/releases-notes/#toc-release-1-0-2)**
16+
**[Latest stable version : 1.0.3](https://jbox-web.github.io/redmine_git_hosting/about/releases-notes/#toc-release-1-0-3)**
1717

1818
## Installation
1919

Diff for: lib/tasks/migration_tools.rake

+28
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,34 @@ namespace :redmine_git_hosting do
108108
end
109109
end
110110

111+
112+
desc "Check GitExtras presence"
113+
task :check_git_extras_presence => [:environment] do
114+
115+
puts ""
116+
puts "Checking for GitExtras presence"
117+
puts ""
118+
119+
Repository::Xitolite.all.each do |repository|
120+
next if !repository.extra.nil?
121+
puts " - Repository '#{repository.redmine_name}' has no entry in RepositoryGitExtras table, create it :"
122+
default_extra_options = {
123+
git_http: RedmineGitHosting::Config.gitolite_http_by_default?,
124+
git_daemon: RedmineGitHosting::Config.gitolite_daemon_by_default?,
125+
git_notify: RedmineGitHosting::Config.gitolite_notify_by_default?,
126+
git_annex: false,
127+
default_branch: 'master',
128+
key: RedmineGitHosting::Utils.generate_secret(64)
129+
}
130+
extra = repository.build_extra(default_extra_options)
131+
extra.save!
132+
puts " Done!"
133+
puts ""
134+
end
135+
136+
puts "Done!"
137+
end
138+
111139
end
112140

113141

0 commit comments

Comments
 (0)