{"action":"created","issue":{"url":"https://api.github.com/repos/tpope/vim-fugitive/issues/818","repository_url":"https://api.github.com/repos/tpope/vim-fugitive","labels_url":"https://api.github.com/repos/tpope/vim-fugitive/issues/818/labels{/name}","comments_url":"https://api.github.com/repos/tpope/vim-fugitive/issues/818/comments","events_url":"https://api.github.com/repos/tpope/vim-fugitive/issues/818/events","html_url":"https://github.com/tpope/vim-fugitive/issues/818","id":165099182,"number":818,"title":"Runtime errors when fugitive.vim is encoded with Windows line endings","user":{"login":"kaepora","id":9953,"avatar_url":"https://avatars.githubusercontent.com/u/9953?v=3","gravatar_id":"","url":"https://api.github.com/users/kaepora","html_url":"https://github.com/kaepora","followers_url":"https://api.github.com/users/kaepora/followers","following_url":"https://api.github.com/users/kaepora/following{/other_user}","gists_url":"https://api.github.com/users/kaepora/gists{/gist_id}","starred_url":"https://api.github.com/users/kaepora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaepora/subscriptions","organizations_url":"https://api.github.com/users/kaepora/orgs","repos_url":"https://api.github.com/users/kaepora/repos","events_url":"https://api.github.com/users/kaepora/events{/privacy}","received_events_url":"https://api.github.com/users/kaepora/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-12T14:47:51Z","updated_at":"2016-07-22T23:06:46Z","closed_at":"2016-07-22T23:06:46Z","body":"When running the latest `fugitive.vim` under Cygwin on Windows, I get the following error:\r\n\r\n```\r\n$ vim\r\nError detected while processing /home/Nadim/.vim/bundle/vim-fugitive/plugin/fugitive.vim:\r\nline    5:\r\nE492: Not an editor command: ^M\r\nline    6:\r\nE15: Invalid expression: exists('g:loaded_fugitive') || &cp^M\r\nline 3097:\r\nE171: Missing :endif\r\nPress ENTER or type command to continue\r\n```\r\n\r\nI was able to fix this error by running `dos2unix` on `fugitive.vim`."},"comment":{"url":"https://api.github.com/repos/tpope/vim-fugitive/issues/comments/234678018","html_url":"https://github.com/tpope/vim-fugitive/issues/818#issuecomment-234678018","issue_url":"https://api.github.com/repos/tpope/vim-fugitive/issues/818","id":234678018,"user":{"login":"tpope","id":378,"avatar_url":"https://avatars.githubusercontent.com/u/378?v=3","gravatar_id":"","url":"https://api.github.com/users/tpope","html_url":"https://github.com/tpope","followers_url":"https://api.github.com/users/tpope/followers","following_url":"https://api.github.com/users/tpope/following{/other_user}","gists_url":"https://api.github.com/users/tpope/gists{/gist_id}","starred_url":"https://api.github.com/users/tpope/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tpope/subscriptions","organizations_url":"https://api.github.com/users/tpope/orgs","repos_url":"https://api.github.com/users/tpope/repos","events_url":"https://api.github.com/users/tpope/events{/privacy}","received_events_url":"https://api.github.com/users/tpope/received_events","type":"User","site_admin":false},"created_at":"2016-07-22T23:06:46Z","updated_at":"2016-07-22T23:06:46Z","body":"You should set your Git config to not inject the carriage returns."}}
{"actor":{"display_login":"tpope"}}