{"action":"created","issue":{"url":"https://api.github.com/repos/chef/chef/issues/4902","repository_url":"https://api.github.com/repos/chef/chef","labels_url":"https://api.github.com/repos/chef/chef/issues/4902/labels{/name}","comments_url":"https://api.github.com/repos/chef/chef/issues/4902/comments","events_url":"https://api.github.com/repos/chef/chef/issues/4902/events","html_url":"https://github.com/chef/chef/pull/4902","id":153365365,"number":4902,"title":"Handle numeric id for the user value in the git resource","user":{"login":"MichaelPereira","id":431374,"avatar_url":"https://avatars.githubusercontent.com/u/431374?v=3","gravatar_id":"","url":"https://api.github.com/users/MichaelPereira","html_url":"https://github.com/MichaelPereira","followers_url":"https://api.github.com/users/MichaelPereira/followers","following_url":"https://api.github.com/users/MichaelPereira/following{/other_user}","gists_url":"https://api.github.com/users/MichaelPereira/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelPereira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelPereira/subscriptions","organizations_url":"https://api.github.com/users/MichaelPereira/orgs","repos_url":"https://api.github.com/users/MichaelPereira/repos","events_url":"https://api.github.com/users/MichaelPereira/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelPereira/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-05-06T02:19:33Z","updated_at":"2016-05-17T17:14:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/chef/chef/pulls/4902","html_url":"https://github.com/chef/chef/pull/4902","diff_url":"https://github.com/chef/chef/pull/4902.diff","patch_url":"https://github.com/chef/chef/pull/4902.patch"},"body":"## Description\r\n\r\nThe user property of the git resource fails when passing the user id instead of the user name. Similarly to what is described in #2860. The problem comes from the fact that the function used to retrieve the user's home only takes a String as input. The changes in this PR allows to retrieve the user's home when the user id is being used. \r\n\r\n## Chef Version\r\n\r\nLatest available RPM installed automatically via vagrant\r\n\r\n## Platform Version\r\n\r\nCentos 6.5\r\n\r\n## Replication Case\r\n\r\n```\r\ngit /tmp/mydir do\r\n  repository 'ssh://git@somehost.tld/myrepo.git'\r\n  revision 'master'\r\n  user <user id>\r\n  group <group id>\r\nend\r\n```\r\n## Client Output\r\n\r\nFrom memory (will update later with proper output I can't access now):\r\n\r\n```\r\nTypeError: no implicit conversion of Integer into String\r\n```\r\nRaised at this line: https://github.com/chef/chef/blob/master/lib/chef/provider/git.rb#L300"},"comment":{"url":"https://api.github.com/repos/chef/chef/issues/comments/219787922","html_url":"https://github.com/chef/chef/pull/4902#issuecomment-219787922","issue_url":"https://api.github.com/repos/chef/chef/issues/4902","id":219787922,"user":{"login":"lamont-granquist","id":454857,"avatar_url":"https://avatars.githubusercontent.com/u/454857?v=3","gravatar_id":"","url":"https://api.github.com/users/lamont-granquist","html_url":"https://github.com/lamont-granquist","followers_url":"https://api.github.com/users/lamont-granquist/followers","following_url":"https://api.github.com/users/lamont-granquist/following{/other_user}","gists_url":"https://api.github.com/users/lamont-granquist/gists{/gist_id}","starred_url":"https://api.github.com/users/lamont-granquist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lamont-granquist/subscriptions","organizations_url":"https://api.github.com/users/lamont-granquist/orgs","repos_url":"https://api.github.com/users/lamont-granquist/repos","events_url":"https://api.github.com/users/lamont-granquist/events{/privacy}","received_events_url":"https://api.github.com/users/lamont-granquist/received_events","type":"User","site_admin":false},"created_at":"2016-05-17T17:14:29Z","updated_at":"2016-05-17T17:14:29Z","body":"👍 "}}