{"action":"created","issue":{"url":"https://api.github.com/repos/hexojs/hexo-deployer-git/issues/71","repository_url":"https://api.github.com/repos/hexojs/hexo-deployer-git","labels_url":"https://api.github.com/repos/hexojs/hexo-deployer-git/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/hexojs/hexo-deployer-git/issues/71/comments","events_url":"https://api.github.com/repos/hexojs/hexo-deployer-git/issues/71/events","html_url":"https://github.com/hexojs/hexo-deployer-git/issues/71","id":226737496,"number":71,"title":"fatal: could not read Username for 'https://github.com': Invalid argument","user":{"login":"LaughingBubba","id":1077530,"avatar_url":"https://avatars2.githubusercontent.com/u/1077530?v=4","gravatar_id":"","url":"https://api.github.com/users/LaughingBubba","html_url":"https://github.com/LaughingBubba","followers_url":"https://api.github.com/users/LaughingBubba/followers","following_url":"https://api.github.com/users/LaughingBubba/following{/other_user}","gists_url":"https://api.github.com/users/LaughingBubba/gists{/gist_id}","starred_url":"https://api.github.com/users/LaughingBubba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LaughingBubba/subscriptions","organizations_url":"https://api.github.com/users/LaughingBubba/orgs","repos_url":"https://api.github.com/users/LaughingBubba/repos","events_url":"https://api.github.com/users/LaughingBubba/events{/privacy}","received_events_url":"https://api.github.com/users/LaughingBubba/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2017-05-06T04:24:10Z","updated_at":"2018-03-17T16:51:47Z","closed_at":null,"author_association":"NONE","body":"Hi I'm getting the above when I try to \r\n```bash \r\nhexo deploy\r\n```\r\n\r\nI'm not the only one to have this problem if you look at the latest comments in the Hexo [trouble shooting guide](https://hexo.io/docs/troubleshooting.html) \r\n\r\nIndeed I am running on win10, however I suspect it's more likely there's a missing environment variable than not using the git cli.\r\n\r\nHere's my [repo](https://github.com/LaughingBubba/LaughingBubba.github.io)\r\n\r\nhexo deploy console log:\r\n\r\n``` bash\r\nC:\\Users\\joseph\\projects\\LaughingBubba.github.io (master)\r\n> hexo deploy\r\nINFO  Deploying: git\r\nINFO  Setting up Git deployment...\r\n====> user name LaughingBubba email laugingbubba@outlook.com\r\nInitialized empty Git repository in C:/Users/joseph/projects/LaughingBubba.github.io/.deploy_git/.git/\r\n[master (root-commit) 80def97] First commit\r\n 1 file changed, 0 insertions(+), 0 deletions(-)\r\n create mode 100644 placeholder\r\nINFO  Clearing .deploy_git folder...\r\nINFO  Copying files from public folder...\r\nINFO  Copying files from extend dirs..\r\n...\r\nblah ... multiple LF being replaced by CRLF warnings ... blah\r\n...\r\nbash: /dev/tty: No such device or address\r\nerror: failed to execute prompt script (exit code 1)\r\nfatal: could not read Username for 'https://github.com': Invalid argument\r\nFATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html\r\nError: bash: /dev/tty: No such device or address\r\nerror: failed to execute prompt script (exit code 1)\r\nfatal: could not read Username for 'https://github.com': Invalid argument\r\n\r\n    at ChildProcess.<anonymous> (C:\\Users\\joseph\\projects\\LaughingBubba.github.io\\node_modules\\hexo-util\\lib\\spawn.js:37:17)\r\n    at emitTwo (events.js:106:13)\r\n    at ChildProcess.emit (events.js:191:7)\r\n    at ChildProcess.cp.emit (C:\\Users\\joseph\\projects\\LaughingBubba.github.io\\node_modules\\cross-spawn\\lib\\enoent.js:40:29)\r\n    at maybeClose (internal/child_process.js:877:16)\r\n    at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)\r\nFATAL bash: /dev/tty: No such device or address\r\nerror: failed to execute prompt script (exit code 1)\r\nfatal: could not read Username for 'https://github.com': Invalid argument\r\n\r\nError: bash: /dev/tty: No such device or address\r\nerror: failed to execute prompt script (exit code 1)\r\nfatal: could not read Username for 'https://github.com': Invalid argument\r\n\r\n    at ChildProcess.<anonymous> (C:\\Users\\joseph\\projects\\LaughingBubba.github.io\\node_modules\\hexo-util\\lib\\spawn.js:37:17)\r\n    at emitTwo (events.js:106:13)\r\n    at ChildProcess.emit (events.js:191:7)\r\n    at ChildProcess.cp.emit (C:\\Users\\joseph\\projects\\LaughingBubba.github.io\\node_modules\\cross-spawn\\lib\\enoent.js:40:29)\r\n    at maybeClose (internal/child_process.js:877:16)\r\n    at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)\r\n```\r\n\r\n \r\nNOTE: I deleted the .deploy_git folder and slipped in a console.log() in the local deployer set up function to make sure the user name was being parsed and I did make a typo.\r\n\r\nI also made sure my global git user settings were right\r\n\r\n``` bash\r\nC:\\Users\\joseph\\projects\\LaughingBubba.github.io (master)\r\n> git config --global user.name\r\nLaughingBubba\r\n\r\nC:\\Users\\joseph\\projects\\LaughingBubba.github.io (master)\r\n> git config --global user.email\r\nlaughingbubba@outlook.com\r\n```\r\n\r\nCheers"},"comment":{"url":"https://api.github.com/repos/hexojs/hexo-deployer-git/issues/comments/373935072","html_url":"https://github.com/hexojs/hexo-deployer-git/issues/71#issuecomment-373935072","issue_url":"https://api.github.com/repos/hexojs/hexo-deployer-git/issues/71","id":373935072,"user":{"login":"frontalnh","id":25814035,"avatar_url":"https://avatars2.githubusercontent.com/u/25814035?v=4","gravatar_id":"","url":"https://api.github.com/users/frontalnh","html_url":"https://github.com/frontalnh","followers_url":"https://api.github.com/users/frontalnh/followers","following_url":"https://api.github.com/users/frontalnh/following{/other_user}","gists_url":"https://api.github.com/users/frontalnh/gists{/gist_id}","starred_url":"https://api.github.com/users/frontalnh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frontalnh/subscriptions","organizations_url":"https://api.github.com/users/frontalnh/orgs","repos_url":"https://api.github.com/users/frontalnh/repos","events_url":"https://api.github.com/users/frontalnh/events{/privacy}","received_events_url":"https://api.github.com/users/frontalnh/received_events","type":"User","site_admin":false},"created_at":"2018-03-17T16:51:47Z","updated_at":"2018-03-17T16:51:47Z","author_association":"NONE","body":"I solved it by fixing _config.yml file\r\n\r\ni tried all above but failed.\r\nthen i found configuration that hinders git to deploy by ssh\r\n\r\nchang remote origin from http url to ssh url \r\nand additionally fix the _config.yml file deploy information\r\ndeploy:\r\n  type: git\r\n  repo: {you ssh git repo}\r\n\r\nit worked to me"}}
{"actor":{"display_login":"frontalnh"}}