{"action":"created","issue":{"url":"https://api.github.com/repos/jbox-web/redmine_git_hosting/issues/336","labels_url":"https://api.github.com/repos/jbox-web/redmine_git_hosting/issues/336/labels{/name}","comments_url":"https://api.github.com/repos/jbox-web/redmine_git_hosting/issues/336/comments","events_url":"https://api.github.com/repos/jbox-web/redmine_git_hosting/issues/336/events","html_url":"https://github.com/jbox-web/redmine_git_hosting/issues/336","id":55729494,"number":336,"title":"`TypeError (no implicit conversion of nil into Array)` when creating a new project with auto repo init turned on","user":{"login":"necramirez","id":167253,"avatar_url":"https://avatars.githubusercontent.com/u/167253?v=3","gravatar_id":"","url":"https://api.github.com/users/necramirez","html_url":"https://github.com/necramirez","followers_url":"https://api.github.com/users/necramirez/followers","following_url":"https://api.github.com/users/necramirez/following{/other_user}","gists_url":"https://api.github.com/users/necramirez/gists{/gist_id}","starred_url":"https://api.github.com/users/necramirez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/necramirez/subscriptions","organizations_url":"https://api.github.com/users/necramirez/orgs","repos_url":"https://api.github.com/users/necramirez/repos","events_url":"https://api.github.com/users/necramirez/events{/privacy}","received_events_url":"https://api.github.com/users/necramirez/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jbox-web/redmine_git_hosting/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"n-rodriguez","id":3433835,"avatar_url":"https://avatars.githubusercontent.com/u/3433835?v=3","gravatar_id":"","url":"https://api.github.com/users/n-rodriguez","html_url":"https://github.com/n-rodriguez","followers_url":"https://api.github.com/users/n-rodriguez/followers","following_url":"https://api.github.com/users/n-rodriguez/following{/other_user}","gists_url":"https://api.github.com/users/n-rodriguez/gists{/gist_id}","starred_url":"https://api.github.com/users/n-rodriguez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/n-rodriguez/subscriptions","organizations_url":"https://api.github.com/users/n-rodriguez/orgs","repos_url":"https://api.github.com/users/n-rodriguez/repos","events_url":"https://api.github.com/users/n-rodriguez/events{/privacy}","received_events_url":"https://api.github.com/users/n-rodriguez/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/jbox-web/redmine_git_hosting/milestones/5","labels_url":"https://api.github.com/repos/jbox-web/redmine_git_hosting/milestones/5/labels","id":951291,"number":5,"title":"1.0.1","description":"","creator":{"login":"n-rodriguez","id":3433835,"avatar_url":"https://avatars.githubusercontent.com/u/3433835?v=3","gravatar_id":"","url":"https://api.github.com/users/n-rodriguez","html_url":"https://github.com/n-rodriguez","followers_url":"https://api.github.com/users/n-rodriguez/followers","following_url":"https://api.github.com/users/n-rodriguez/following{/other_user}","gists_url":"https://api.github.com/users/n-rodriguez/gists{/gist_id}","starred_url":"https://api.github.com/users/n-rodriguez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/n-rodriguez/subscriptions","organizations_url":"https://api.github.com/users/n-rodriguez/orgs","repos_url":"https://api.github.com/users/n-rodriguez/repos","events_url":"https://api.github.com/users/n-rodriguez/events{/privacy}","received_events_url":"https://api.github.com/users/n-rodriguez/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":1,"state":"open","created_at":"2015-01-26T13:11:20Z","updated_at":"2015-01-29T01:30:20Z","due_on":"2015-02-14T23:00:00Z","closed_at":null},"comments":7,"created_at":"2015-01-28T08:55:08Z","updated_at":"2015-01-29T01:57:27Z","closed_at":null,"body":"* Ruby: 2.0.0-p598\r\n* Redmine: 2.6.0.stable\r\n* Git: 1.7.1\r\n* redmine_git_hosting: v1.x branch\r\n\r\nI have _Automatically initialize Git repositories for new projects_ turned on, and I create a new project. I get this error in Redmine's `production.log`:\r\n\r\n```\r\nStarted GET \"/projects/new\" for 9.187.62.249 at 2015-01-28 02:37:24 -0500\r\nProcessing by ProjectsController#new as HTML\r\n  Current user: admin (id=1)\r\n  Rendered projects/_form.html.erb (17.1ms)\r\n  Rendered projects/new.html.erb within layouts/base (20.7ms)\r\nCompleted 200 OK in 50.6ms (Views: 36.2ms | ActiveRecord: 3.0ms)\r\nStarted POST \"/projects\" for 9.187.62.249 at 2015-01-28 02:37:41 -0500\r\nProcessing by ProjectsController#create as HTML\r\n  Parameters: {\"utf8\"=>\"✓\", \"authenticity_token\"=>\"QUH8EX6l/0QCuL1j0jnR/tllhwGlnOrBMedkFJf4tJM=\", \"project\"=>{\"name\"=>\"Team Page\", \"description\"=>\"\", \"identifier\"=>\"team-page\", \"homepage\"=>\"\", \"is_public\"=>\"1\", \"parent_id\"=>\"\", \"inherit_members\"=>\"0\", \"enabled_module_names\"=>[\"issue_tracking\", \"time_tracking\", \"files\", \"wiki\", \"repository\", \"\"], \"tracker_ids\"=>[\"1\", \"2\", \"\"], \"issue_custom_field_ids\"=>[\"\"]}, \"commit\"=>\"Create\"}\r\n  Current user: admin (id=1)\r\nRedirected to http://localhost/projects/team-page/settings\r\nCompleted 500 Internal Server Error in 1420.5ms\r\n\r\nTypeError (no implicit conversion of nil into Array):\r\n  lib/redmine/scm/adapters/git_adapter.rb:85:in `branches'\r\n  app/models/repository/git.rb:75:in `branches'\r\n  app/models/repository/git.rb:130:in `fetch_changesets'\r\n```\r\n\r\nNOTE:  This also happens when _Automatically initialize Git repositories for new projects_ is turned off, then I create the project, then try to create the repository."},"comment":{"url":"https://api.github.com/repos/jbox-web/redmine_git_hosting/issues/comments/71955495","html_url":"https://github.com/jbox-web/redmine_git_hosting/issues/336#issuecomment-71955495","issue_url":"https://api.github.com/repos/jbox-web/redmine_git_hosting/issues/336","id":71955495,"user":{"login":"n-rodriguez","id":3433835,"avatar_url":"https://avatars.githubusercontent.com/u/3433835?v=3","gravatar_id":"","url":"https://api.github.com/users/n-rodriguez","html_url":"https://github.com/n-rodriguez","followers_url":"https://api.github.com/users/n-rodriguez/followers","following_url":"https://api.github.com/users/n-rodriguez/following{/other_user}","gists_url":"https://api.github.com/users/n-rodriguez/gists{/gist_id}","starred_url":"https://api.github.com/users/n-rodriguez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/n-rodriguez/subscriptions","organizations_url":"https://api.github.com/users/n-rodriguez/orgs","repos_url":"https://api.github.com/users/n-rodriguez/repos","events_url":"https://api.github.com/users/n-rodriguez/events{/privacy}","received_events_url":"https://api.github.com/users/n-rodriguez/received_events","type":"User","site_admin":false},"created_at":"2015-01-29T01:57:27Z","updated_at":"2015-01-29T01:57:27Z","body":"> I then upgraded my Git, and it now works! This means that redmine_git_hosting needs a minimum Git version that's higher than 1.7.1 -- which isn't stated anywhere in the docs.\r\n\r\nA very good point for you!! It does need a quiet recent version of Git, I forgot this point.\r\nActually it needs a Git version that provides the ```-C``` argument.\r\n\r\nman git :\r\n\r\n```\r\n       -C <path>\r\n           Run as if git was started in <path> instead of the current working directory\r\n```\r\n"}}