{"action":"created","issue":{"url":"https://api.github.com/repos/git-for-windows/git/issues/327","labels_url":"https://api.github.com/repos/git-for-windows/git/issues/327/labels{/name}","comments_url":"https://api.github.com/repos/git-for-windows/git/issues/327/comments","events_url":"https://api.github.com/repos/git-for-windows/git/issues/327/events","html_url":"https://github.com/git-for-windows/git/issues/327","id":103668774,"number":327,"title":"Git repository with authentication: could not read Username - bash: /dev/tty: No such device or address","user":{"login":"aorylamballe","id":8555557,"avatar_url":"https://avatars.githubusercontent.com/u/8555557?v=3","gravatar_id":"","url":"https://api.github.com/users/aorylamballe","html_url":"https://github.com/aorylamballe","followers_url":"https://api.github.com/users/aorylamballe/followers","following_url":"https://api.github.com/users/aorylamballe/following{/other_user}","gists_url":"https://api.github.com/users/aorylamballe/gists{/gist_id}","starred_url":"https://api.github.com/users/aorylamballe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aorylamballe/subscriptions","organizations_url":"https://api.github.com/users/aorylamballe/orgs","repos_url":"https://api.github.com/users/aorylamballe/repos","events_url":"https://api.github.com/users/aorylamballe/events{/privacy}","received_events_url":"https://api.github.com/users/aorylamballe/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/git-for-windows/git/labels/help%20wanted","name":"help wanted","color":"159818"},{"url":"https://api.github.com/repos/git-for-windows/git/labels/unclear","name":"unclear","color":"fef2c0"}],"state":"open","locked":false,"assignee":{"login":"dscho","id":127790,"avatar_url":"https://avatars.githubusercontent.com/u/127790?v=3","gravatar_id":"","url":"https://api.github.com/users/dscho","html_url":"https://github.com/dscho","followers_url":"https://api.github.com/users/dscho/followers","following_url":"https://api.github.com/users/dscho/following{/other_user}","gists_url":"https://api.github.com/users/dscho/gists{/gist_id}","starred_url":"https://api.github.com/users/dscho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dscho/subscriptions","organizations_url":"https://api.github.com/users/dscho/orgs","repos_url":"https://api.github.com/users/dscho/repos","events_url":"https://api.github.com/users/dscho/events{/privacy}","received_events_url":"https://api.github.com/users/dscho/received_events","type":"User","site_admin":false},"milestone":null,"comments":17,"created_at":"2015-08-28T08:18:58Z","updated_at":"2015-11-20T05:09:26Z","closed_at":null,"body":"Hi,\r\n\r\nI met a strange behavior. We have a git repository that requires a user/password (or a SSH key) to clone a project repository. Cloning directly works, but when I try through command line tools like Cordova, bower... that uses git to get a component, I get error messages with the latest git (2.5, 2.4.6, 2.4.5...), but I have no error with git 1.9.5 (previous official git for Windows).\r\n\r\nI tested on multiple Windows 7 and multiple Windows 8, same behavior (KO with recent git, OK with 1.9.5).\r\n\r\nWith bower: ```bower install https://my-repo-with-password.com/group/my-lib.git```\r\n\r\n```\r\nC:\\myProjectPath>bower install https://my-repo-with-password.com/group/my-lib.git\r\nbower my-lib#*    not-cached https://my-repo-with-password.com/group/my-lib.git#*\r\nbower my-lib#*       resolve https://my-repo-with-password.com/group/my-lib.git#*\r\nbower my-lib#*       ECMDERR Failed to execute \"git ls-remote --tags --heads https://my-repo-with-password.com/group/my-lib.git\", exit code of #128 bash: /dev/tty: No such device or addres\r\ns error: failed to execute prompt script (exit code 1) fatal: could not read Username for 'https://my-repo-with-password.com': No error\r\n\r\nAdditional error details:\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://my-repo-with-password.com': No error\r\n```\r\n\r\nWith cordova: ```bower install https://my-repo-with-password.com/group/my-lib.git```\r\n\r\n```\r\nC:\\myProjectPath>ionic plugin add https://my-repo-with-password.com/group/my-cordova-plugin.git\r\nUpdated the hooks directory to have execute permissions\r\nFetching plugin \"https://my-repo-with-password.com/group/my-cordova-plugin.git\" via git clone\r\nFailed to fetch plugin https://my-repo-with-password.com/group/my-cordova-plugin.git via git.\r\nEither there is a connection problems, or plugin spec is incorrect:\r\n        Error: C:\\Program Files\\Git\\cmd\\git.exe: Command failed with exit code 128 Error output:\r\nCloning into 'C:\\Users\\ORY-LA~1.ANT\\AppData\\Local\\Temp\\git\\1440747212231'...\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://my-repo-with-password.com': No error\r\n```\r\n\r\nAny idea about what could be wrong?\r\n\r\nThanks!\r\n\r\nPS: Reaching with SSH does not work (```bower install git@my-repo-with-password.com:group/my-lib.git``` or ```ionic plugin add git@my-repo-with-password.com:group/my-cordova-plugin.git```) does not work, but that may be another issue since it does not work with git 1.9.5 as well."},"comment":{"url":"https://api.github.com/repos/git-for-windows/git/issues/comments/158281112","html_url":"https://github.com/git-for-windows/git/issues/327#issuecomment-158281112","issue_url":"https://api.github.com/repos/git-for-windows/git/issues/327","id":158281112,"user":{"login":"architruc","id":6078211,"avatar_url":"https://avatars.githubusercontent.com/u/6078211?v=3","gravatar_id":"","url":"https://api.github.com/users/architruc","html_url":"https://github.com/architruc","followers_url":"https://api.github.com/users/architruc/followers","following_url":"https://api.github.com/users/architruc/following{/other_user}","gists_url":"https://api.github.com/users/architruc/gists{/gist_id}","starred_url":"https://api.github.com/users/architruc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/architruc/subscriptions","organizations_url":"https://api.github.com/users/architruc/orgs","repos_url":"https://api.github.com/users/architruc/repos","events_url":"https://api.github.com/users/architruc/events{/privacy}","received_events_url":"https://api.github.com/users/architruc/received_events","type":"User","site_admin":false},"created_at":"2015-11-20T05:09:26Z","updated_at":"2015-11-20T05:09:26Z","body":"@dscho @vital055 Sorry for my very late response, I was busy recently.\r\n\r\nI retried with `git version 2.6.2.windows.1`, and `bower install ...` in CMD still does *not* work, **but** it does work inside the git bash!\r\n\r\nSo we have a workaround, getting the latest version of git (not sure this is the reason) and installing the bower dependency in the project using git bash.\r\n\r\nIt is not convenient since all other usecases I have met with git so far work in CMD (webstorm has an embedded CMD very convenient), but at least it means we can finally stop using git 1.9.5 (which has other issues with TFS git).\r\n\r\n@vital055, does this inspire you something?\r\n\r\nThanks!"}}