redmine-git-hosting/redmine_git_hosting

Unable to install hooks via rake task

acosonic opened this issue · 2 comments

Code below shows error as well:

user@redmine:~/redmine$ RAILS_ENV=production rake redmine_git_hosting:install_gitolite_hooks
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x64-mingw32, x86-mswin32. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x64-mingw32 x86-mswin32`.
The dependency ffi (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x64-mingw32, x86-mswin32. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x64-mingw32 x86-mswin32`.

 * Installing/updating Gitolite hooks:
rake aborted!
NameError: undefined local variable or method `block' for RedmineGitHosting::ConsoleLogger:Module
/home/user/redmine/plugins/redmine_git_hosting/lib/redmine_git_hosting/console_logger.rb:9:in `title'

@acosonic if you were running the git master branch the issue is fixed in 7c8f9e3, else please provide at least your rails, redmine, ruby and redmine_git_hosting version so we can test the issue on a similar setup. You can get those infos from https://<your_redmine_uri>/admin/info.

Closed as per last comment