{"action":"opened","issue":{"url":"https://api.github.com/repos/github/hub/issues/945","labels_url":"https://api.github.com/repos/github/hub/issues/945/labels{/name}","comments_url":"https://api.github.com/repos/github/hub/issues/945/comments","events_url":"https://api.github.com/repos/github/hub/issues/945/events","html_url":"https://github.com/github/hub/issues/945","id":93401177,"number":945,"title":"hub doesn't account for special characters in branch names","user":{"login":"mockdeep","id":80543,"avatar_url":"https://avatars.githubusercontent.com/u/80543?v=3","gravatar_id":"","url":"https://api.github.com/users/mockdeep","html_url":"https://github.com/mockdeep","followers_url":"https://api.github.com/users/mockdeep/followers","following_url":"https://api.github.com/users/mockdeep/following{/other_user}","gists_url":"https://api.github.com/users/mockdeep/gists{/gist_id}","starred_url":"https://api.github.com/users/mockdeep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mockdeep/subscriptions","organizations_url":"https://api.github.com/users/mockdeep/orgs","repos_url":"https://api.github.com/users/mockdeep/repos","events_url":"https://api.github.com/users/mockdeep/events{/privacy}","received_events_url":"https://api.github.com/users/mockdeep/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-06T23:35:24Z","updated_at":"2015-07-06T23:35:24Z","closed_at":null,"body":"I can check out a branch like:\r\n\r\n```sh\r\n$ git checkout -b it\\'s_dangerous_to_go_alone\r\n```\r\n\r\nBut when I try to use `hub` to pull request it I get an error:\r\n\r\n```sh\r\n$ hub pull-request\r\n/usr/lib/ruby/1.9.1/shellwords.rb:35:in `block in shellsplit': Unmatched double quote: \"rev-list --cherry-pick --right-only --no-merges origin/it's_dangerous_to_go_alone...\" (ArgumentError)\r\n\tfrom /usr/lib/ruby/1.9.1/shellwords.rb:33:in `scan'\r\n\tfrom /usr/lib/ruby/1.9.1/shellwords.rb:33:in `shellsplit'\r\n\tfrom /home/fletch/bin/hub:903:in `to_exec'\r\n\tfrom /home/fletch/bin/hub:908:in `command_to_string'\r\n\tfrom /home/fletch/bin/hub:867:in `block in initialize'\r\n\tfrom /home/fletch/bin/hub:885:in `yield'\r\n\tfrom /home/fletch/bin/hub:885:in `default'\r\n\tfrom /home/fletch/bin/hub:885:in `read'\r\n\tfrom /home/fletch/bin/hub:1324:in `rev_list'\r\n\tfrom /home/fletch/bin/hub:1720:in `pull_request'\r\n\tfrom /home/fletch/bin/hub:1586:in `run'\r\n\tfrom /home/fletch/bin/hub:2514:in `initialize'\r\n\tfrom /home/fletch/bin/hub:2518:in `new'\r\n\tfrom /home/fletch/bin/hub:2518:in `execute'\r\n\tfrom /home/fletch/bin/hub:2569:in `<main>\r\n```"}}