{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/pub/issues/46","labels_url":"https://api.github.com/repos/dart-lang/pub/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/pub/issues/46/comments","events_url":"https://api.github.com/repos/dart-lang/pub/issues/46/events","html_url":"https://github.com/dart-lang/pub/issues/46","id":85641162,"number":46,"title":"Pub: dependency on https://host/dir/ installs into the wrong directory","user":{"login":"DartBot","id":8958862,"avatar_url":"https://avatars.githubusercontent.com/u/8958862?v=3","gravatar_id":"","url":"https://api.github.com/users/DartBot","html_url":"https://github.com/DartBot","followers_url":"https://api.github.com/users/DartBot/followers","following_url":"https://api.github.com/users/DartBot/following{/other_user}","gists_url":"https://api.github.com/users/DartBot/gists{/gist_id}","starred_url":"https://api.github.com/users/DartBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DartBot/subscriptions","organizations_url":"https://api.github.com/users/DartBot/orgs","repos_url":"https://api.github.com/users/DartBot/repos","events_url":"https://api.github.com/users/DartBot/events{/privacy}","received_events_url":"https://api.github.com/users/DartBot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dart-lang/pub/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/dart-lang/pub/labels/Fixed","name":"Fixed","color":"ededed"},{"url":"https://api.github.com/repos/dart-lang/pub/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"nex3","id":188,"avatar_url":"https://avatars.githubusercontent.com/u/188?v=3","gravatar_id":"","url":"https://api.github.com/users/nex3","html_url":"https://github.com/nex3","followers_url":"https://api.github.com/users/nex3/followers","following_url":"https://api.github.com/users/nex3/following{/other_user}","gists_url":"https://api.github.com/users/nex3/gists{/gist_id}","starred_url":"https://api.github.com/users/nex3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nex3/subscriptions","organizations_url":"https://api.github.com/users/nex3/orgs","repos_url":"https://api.github.com/users/nex3/repos","events_url":"https://api.github.com/users/nex3/events{/privacy}","received_events_url":"https://api.github.com/users/nex3/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-06-05T21:57:27Z","updated_at":"2015-06-05T21:57:28Z","closed_at":null,"body":"_Originally opened as dart-lang/sdk#3493_\n\n*This issue was originally filed by sammcca...&#064;google.com*\n_____\nPaths ending in slash don't install properly - the git repo is checked out into packages/ instead of packages/foo/.\nIn particular, code.google.com recommends repo URLs ending in /.\n\nI think it's detecting the repo name as the empty string, and so running 'git clone $repo packages/$reponame' does the wrong thing.\n\n(Also, shouldn't it be naming the checkout dir after the dependency name in my pubspec? Those are guaranteed to be unique...)\n\ne.g.\n\n$ cat pubspec.yaml\ndependencies:\n&nbsp;&nbsp;googleapis:\n&nbsp;&nbsp;&nbsp;&nbsp;git: https://code.google.com/p/foo/\n\n$ pub install\nCloning into '/usr/local/google/home/sammccall/gits/dartapiarysamples/packages'...\nDependencies installed!\n\n$ ls -a packages\n. .. .git"},"comment":{"url":"https://api.github.com/repos/dart-lang/pub/issues/comments/109450893","html_url":"https://github.com/dart-lang/pub/issues/46#issuecomment-109450893","issue_url":"https://api.github.com/repos/dart-lang/pub/issues/46","id":109450893,"user":{"login":"DartBot","id":8958862,"avatar_url":"https://avatars.githubusercontent.com/u/8958862?v=3","gravatar_id":"","url":"https://api.github.com/users/DartBot","html_url":"https://github.com/DartBot","followers_url":"https://api.github.com/users/DartBot/followers","following_url":"https://api.github.com/users/DartBot/following{/other_user}","gists_url":"https://api.github.com/users/DartBot/gists{/gist_id}","starred_url":"https://api.github.com/users/DartBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DartBot/subscriptions","organizations_url":"https://api.github.com/users/DartBot/orgs","repos_url":"https://api.github.com/users/DartBot/repos","events_url":"https://api.github.com/users/DartBot/events{/privacy}","received_events_url":"https://api.github.com/users/DartBot/received_events","type":"User","site_admin":false},"created_at":"2015-06-05T21:57:28Z","updated_at":"2015-06-05T21:57:28Z","body":"<a href=\"https://github.com/nex3\"><img src=\"https://avatars.githubusercontent.com/u/188?v=3\" align=\"left\" width=\"48\" height=\"48\"hspace=\"10\"></img></a> **Comment by [nex3](https://github.com/nex3)**\n\n----\n\nFixed by dart-lang/sdk@4b76d74d5d8c4134117a5eee820687b6a20798ab.\n______\n*Added [Fixed](../labels/Fixed) label.*\n"}}