{"action":"opened","number":2168,"pull_request":{"url":"https://api.github.com/repos/magit/magit/pulls/2168","id":42358972,"html_url":"https://github.com/magit/magit/pull/2168","diff_url":"https://github.com/magit/magit/pull/2168.diff","patch_url":"https://github.com/magit/magit/pull/2168.patch","issue_url":"https://api.github.com/repos/magit/magit/issues/2168","number":2168,"state":"open","locked":false,"title":"Fix bug where magit-status wouldn't work because of files in working directory","user":{"login":"niligulmohar","id":104531,"avatar_url":"https://avatars.githubusercontent.com/u/104531?v=3","gravatar_id":"","url":"https://api.github.com/users/niligulmohar","html_url":"https://github.com/niligulmohar","followers_url":"https://api.github.com/users/niligulmohar/followers","following_url":"https://api.github.com/users/niligulmohar/following{/other_user}","gists_url":"https://api.github.com/users/niligulmohar/gists{/gist_id}","starred_url":"https://api.github.com/users/niligulmohar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niligulmohar/subscriptions","organizations_url":"https://api.github.com/users/niligulmohar/orgs","repos_url":"https://api.github.com/users/niligulmohar/repos","events_url":"https://api.github.com/users/niligulmohar/events{/privacy}","received_events_url":"https://api.github.com/users/niligulmohar/received_events","type":"User","site_admin":false},"body":"In some working directories `magit-status` would only open an empty buffer and display the message\r\n\r\n    magit-process-insert-section: Wrong type argument: arrayp, nil\r\n\r\nThe problem was in `magit-rev-format`. Enabling `magit-git-debug` revealed that its git invocation failed with this message:\r\n\r\n    128 git … show -s --format=%h %s FOO\r\n    fatal: ambiguous argument 'FOO': both revision and filename\r\n    Use '--' to separate paths from revisions, like this:\r\n    'git <command> [<revision>...] -- [<file>...]'\r\n\r\nThis fix adds the disambiguating \"--\", which makes `magit-status` work even if there are unfortunately named files in the working directory.","created_at":"2015-08-13T14:48:50Z","updated_at":"2015-08-13T14:48:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/magit/magit/pulls/2168/commits","review_comments_url":"https://api.github.com/repos/magit/magit/pulls/2168/comments","review_comment_url":"https://api.github.com/repos/magit/magit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/magit/magit/issues/2168/comments","statuses_url":"https://api.github.com/repos/magit/magit/statuses/ea9f1ac99079aefbb4f67a94b12e646a85718a6e","head":{"label":"niligulmohar:magit-rev-format-ambiguity-fix","ref":"magit-rev-format-ambiguity-fix","sha":"ea9f1ac99079aefbb4f67a94b12e646a85718a6e","user":{"login":"niligulmohar","id":104531,"avatar_url":"https://avatars.githubusercontent.com/u/104531?v=3","gravatar_id":"","url":"https://api.github.com/users/niligulmohar","html_url":"https://github.com/niligulmohar","followers_url":"https://api.github.com/users/niligulmohar/followers","following_url":"https://api.github.com/users/niligulmohar/following{/other_user}","gists_url":"https://api.github.com/users/niligulmohar/gists{/gist_id}","starred_url":"https://api.github.com/users/niligulmohar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niligulmohar/subscriptions","organizations_url":"https://api.github.com/users/niligulmohar/orgs","repos_url":"https://api.github.com/users/niligulmohar/repos","events_url":"https://api.github.com/users/niligulmohar/events{/privacy}","received_events_url":"https://api.github.com/users/niligulmohar/received_events","type":"User","site_admin":false},"repo":{"id":40663078,"name":"magit","full_name":"niligulmohar/magit","owner":{"login":"niligulmohar","id":104531,"avatar_url":"https://avatars.githubusercontent.com/u/104531?v=3","gravatar_id":"","url":"https://api.github.com/users/niligulmohar","html_url":"https://github.com/niligulmohar","followers_url":"https://api.github.com/users/niligulmohar/followers","following_url":"https://api.github.com/users/niligulmohar/following{/other_user}","gists_url":"https://api.github.com/users/niligulmohar/gists{/gist_id}","starred_url":"https://api.github.com/users/niligulmohar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niligulmohar/subscriptions","organizations_url":"https://api.github.com/users/niligulmohar/orgs","repos_url":"https://api.github.com/users/niligulmohar/repos","events_url":"https://api.github.com/users/niligulmohar/events{/privacy}","received_events_url":"https://api.github.com/users/niligulmohar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/niligulmohar/magit","description":"It's Magit! A Git Porcelain inside Emacs.","fork":true,"url":"https://api.github.com/repos/niligulmohar/magit","forks_url":"https://api.github.com/repos/niligulmohar/magit/forks","keys_url":"https://api.github.com/repos/niligulmohar/magit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/niligulmohar/magit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/niligulmohar/magit/teams","hooks_url":"https://api.github.com/repos/niligulmohar/magit/hooks","issue_events_url":"https://api.github.com/repos/niligulmohar/magit/issues/events{/number}","events_url":"https://api.github.com/repos/niligulmohar/magit/events","assignees_url":"https://api.github.com/repos/niligulmohar/magit/assignees{/user}","branches_url":"https://api.github.com/repos/niligulmohar/magit/branches{/branch}","tags_url":"https://api.github.com/repos/niligulmohar/magit/tags","blobs_url":"https://api.github.com/repos/niligulmohar/magit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/niligulmohar/magit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/niligulmohar/magit/git/refs{/sha}","trees_url":"https://api.github.com/repos/niligulmohar/magit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/niligulmohar/magit/statuses/{sha}","languages_url":"https://api.github.com/repos/niligulmohar/magit/languages","stargazers_url":"https://api.github.com/repos/niligulmohar/magit/stargazers","contributors_url":"https://api.github.com/repos/niligulmohar/magit/contributors","subscribers_url":"https://api.github.com/repos/niligulmohar/magit/subscribers","subscription_url":"https://api.github.com/repos/niligulmohar/magit/subscription","commits_url":"https://api.github.com/repos/niligulmohar/magit/commits{/sha}","git_commits_url":"https://api.github.com/repos/niligulmohar/magit/git/commits{/sha}","comments_url":"https://api.github.com/repos/niligulmohar/magit/comments{/number}","issue_comment_url":"https://api.github.com/repos/niligulmohar/magit/issues/comments{/number}","contents_url":"https://api.github.com/repos/niligulmohar/magit/contents/{+path}","compare_url":"https://api.github.com/repos/niligulmohar/magit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/niligulmohar/magit/merges","archive_url":"https://api.github.com/repos/niligulmohar/magit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/niligulmohar/magit/downloads","issues_url":"https://api.github.com/repos/niligulmohar/magit/issues{/number}","pulls_url":"https://api.github.com/repos/niligulmohar/magit/pulls{/number}","milestones_url":"https://api.github.com/repos/niligulmohar/magit/milestones{/number}","notifications_url":"https://api.github.com/repos/niligulmohar/magit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/niligulmohar/magit/labels{/name}","releases_url":"https://api.github.com/repos/niligulmohar/magit/releases{/id}","created_at":"2015-08-13T14:26:17Z","updated_at":"2015-08-13T14:26:18Z","pushed_at":"2015-08-13T14:34:42Z","git_url":"git://github.com/niligulmohar/magit.git","ssh_url":"git@github.com:niligulmohar/magit.git","clone_url":"https://github.com/niligulmohar/magit.git","svn_url":"https://github.com/niligulmohar/magit","homepage":"http://magit.vc","size":22350,"stargazers_count":0,"watchers_count":0,"language":"Emacs Lisp","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"magit:master","ref":"master","sha":"a0ee0fa79557ec734bbb01b48cb99bd969e4bdba","user":{"login":"magit","id":750076,"avatar_url":"https://avatars.githubusercontent.com/u/750076?v=3","gravatar_id":"","url":"https://api.github.com/users/magit","html_url":"https://github.com/magit","followers_url":"https://api.github.com/users/magit/followers","following_url":"https://api.github.com/users/magit/following{/other_user}","gists_url":"https://api.github.com/users/magit/gists{/gist_id}","starred_url":"https://api.github.com/users/magit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magit/subscriptions","organizations_url":"https://api.github.com/users/magit/orgs","repos_url":"https://api.github.com/users/magit/repos","events_url":"https://api.github.com/users/magit/events{/privacy}","received_events_url":"https://api.github.com/users/magit/received_events","type":"Organization","site_admin":false},"repo":{"id":655492,"name":"magit","full_name":"magit/magit","owner":{"login":"magit","id":750076,"avatar_url":"https://avatars.githubusercontent.com/u/750076?v=3","gravatar_id":"","url":"https://api.github.com/users/magit","html_url":"https://github.com/magit","followers_url":"https://api.github.com/users/magit/followers","following_url":"https://api.github.com/users/magit/following{/other_user}","gists_url":"https://api.github.com/users/magit/gists{/gist_id}","starred_url":"https://api.github.com/users/magit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magit/subscriptions","organizations_url":"https://api.github.com/users/magit/orgs","repos_url":"https://api.github.com/users/magit/repos","events_url":"https://api.github.com/users/magit/events{/privacy}","received_events_url":"https://api.github.com/users/magit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/magit/magit","description":"It's Magit! A Git Porcelain inside Emacs.","fork":false,"url":"https://api.github.com/repos/magit/magit","forks_url":"https://api.github.com/repos/magit/magit/forks","keys_url":"https://api.github.com/repos/magit/magit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/magit/magit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/magit/magit/teams","hooks_url":"https://api.github.com/repos/magit/magit/hooks","issue_events_url":"https://api.github.com/repos/magit/magit/issues/events{/number}","events_url":"https://api.github.com/repos/magit/magit/events","assignees_url":"https://api.github.com/repos/magit/magit/assignees{/user}","branches_url":"https://api.github.com/repos/magit/magit/branches{/branch}","tags_url":"https://api.github.com/repos/magit/magit/tags","blobs_url":"https://api.github.com/repos/magit/magit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/magit/magit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/magit/magit/git/refs{/sha}","trees_url":"https://api.github.com/repos/magit/magit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/magit/magit/statuses/{sha}","languages_url":"https://api.github.com/repos/magit/magit/languages","stargazers_url":"https://api.github.com/repos/magit/magit/stargazers","contributors_url":"https://api.github.com/repos/magit/magit/contributors","subscribers_url":"https://api.github.com/repos/magit/magit/subscribers","subscription_url":"https://api.github.com/repos/magit/magit/subscription","commits_url":"https://api.github.com/repos/magit/magit/commits{/sha}","git_commits_url":"https://api.github.com/repos/magit/magit/git/commits{/sha}","comments_url":"https://api.github.com/repos/magit/magit/comments{/number}","issue_comment_url":"https://api.github.com/repos/magit/magit/issues/comments{/number}","contents_url":"https://api.github.com/repos/magit/magit/contents/{+path}","compare_url":"https://api.github.com/repos/magit/magit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/magit/magit/merges","archive_url":"https://api.github.com/repos/magit/magit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/magit/magit/downloads","issues_url":"https://api.github.com/repos/magit/magit/issues{/number}","pulls_url":"https://api.github.com/repos/magit/magit/pulls{/number}","milestones_url":"https://api.github.com/repos/magit/magit/milestones{/number}","notifications_url":"https://api.github.com/repos/magit/magit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/magit/magit/labels{/name}","releases_url":"https://api.github.com/repos/magit/magit/releases{/id}","created_at":"2010-05-07T19:07:04Z","updated_at":"2015-08-13T13:50:24Z","pushed_at":"2015-08-13T12:22:47Z","git_url":"git://github.com/magit/magit.git","ssh_url":"git@github.com:magit/magit.git","clone_url":"https://github.com/magit/magit.git","svn_url":"https://github.com/magit/magit","homepage":"http://magit.vc","size":22350,"stargazers_count":1657,"watchers_count":1657,"language":"Emacs Lisp","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":350,"mirror_url":null,"open_issues_count":32,"forks":350,"open_issues":32,"watchers":1657,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/magit/magit/pulls/2168"},"html":{"href":"https://github.com/magit/magit/pull/2168"},"issue":{"href":"https://api.github.com/repos/magit/magit/issues/2168"},"comments":{"href":"https://api.github.com/repos/magit/magit/issues/2168/comments"},"review_comments":{"href":"https://api.github.com/repos/magit/magit/pulls/2168/comments"},"review_comment":{"href":"https://api.github.com/repos/magit/magit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/magit/magit/pulls/2168/commits"},"statuses":{"href":"https://api.github.com/repos/magit/magit/statuses/ea9f1ac99079aefbb4f67a94b12e646a85718a6e"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":2,"changed_files":1}}