Fix https://github.com/jbox-web/redmine_git_hosting/pull/223
Fix https://github.com/jbox-web/redmine_git_hosting/pull/259