{"action":"opened","issue":{"url":"https://api.github.com/repos/datalad/datalad/issues/223","labels_url":"https://api.github.com/repos/datalad/datalad/issues/223/labels{/name}","comments_url":"https://api.github.com/repos/datalad/datalad/issues/223/comments","events_url":"https://api.github.com/repos/datalad/datalad/issues/223/events","html_url":"https://github.com/datalad/datalad/issues/223","id":107518860,"number":223,"title":"install-handle URL without path should not install into curdir","user":{"login":"yarikoptic","id":39889,"avatar_url":"https://avatars.githubusercontent.com/u/39889?v=3","gravatar_id":"","url":"https://api.github.com/users/yarikoptic","html_url":"https://github.com/yarikoptic","followers_url":"https://api.github.com/users/yarikoptic/followers","following_url":"https://api.github.com/users/yarikoptic/following{/other_user}","gists_url":"https://api.github.com/users/yarikoptic/gists{/gist_id}","starred_url":"https://api.github.com/users/yarikoptic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yarikoptic/subscriptions","organizations_url":"https://api.github.com/users/yarikoptic/orgs","repos_url":"https://api.github.com/users/yarikoptic/repos","events_url":"https://api.github.com/users/yarikoptic/events{/privacy}","received_events_url":"https://api.github.com/users/yarikoptic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-21T13:58:59Z","updated_at":"2015-09-21T13:58:59Z","closed_at":null,"body":"```\r\n/tmp# datalad install-handle http://data.pymvpa.org/datasets/tutorial_data/.git\r\n2015-09-21 13:57:02,788 [ERROR  ] 'git clone -v http://data.pymvpa.org/datasets/tutorial_data/.git /tmp' returned with exit code 128\r\n| stderr: 'fatal: destination path '/tmp' already exists and is not an empty directory.\r\n| ' (gitrepo.py:242)\r\n2015-09-21 13:57:02,789 [ERROR  ] 'git clone -v http://data.pymvpa.org/datasets/tutorial_data/.git /tmp' returned with exit code 128\r\n| stderr: 'fatal: destination path '/tmp' already exists and is not an empty directory.\r\n| ' (GitCommandError) (main.py:206)\r\n\r\n/tmp# datalad install-handle http://data.pymvpa.org/datasets/tutorial_data/.git tutorial_data\r\n```\r\nbehavior should be similar to how `git clone` does it by using the last path dir (excluding .git) for the name"}}