{"action":"created","issue":{"url":"https://api.github.com/repos/datalad/datalad/issues/294","labels_url":"https://api.github.com/repos/datalad/datalad/issues/294/labels{/name}","comments_url":"https://api.github.com/repos/datalad/datalad/issues/294/comments","events_url":"https://api.github.com/repos/datalad/datalad/issues/294/events","html_url":"https://github.com/datalad/datalad/issues/294","id":116022251,"number":294,"title":"get_repo_instance doesn't even go to parent if target class_ is specified","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":"closed","locked":false,"assignee":{"login":"bpoldrack","id":10498301,"avatar_url":"https://avatars.githubusercontent.com/u/10498301?v=3","gravatar_id":"","url":"https://api.github.com/users/bpoldrack","html_url":"https://github.com/bpoldrack","followers_url":"https://api.github.com/users/bpoldrack/followers","following_url":"https://api.github.com/users/bpoldrack/following{/other_user}","gists_url":"https://api.github.com/users/bpoldrack/gists{/gist_id}","starred_url":"https://api.github.com/users/bpoldrack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bpoldrack/subscriptions","organizations_url":"https://api.github.com/users/bpoldrack/orgs","repos_url":"https://api.github.com/users/bpoldrack/repos","events_url":"https://api.github.com/users/bpoldrack/events{/privacy}","received_events_url":"https://api.github.com/users/bpoldrack/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-11-10T04:15:26Z","updated_at":"2015-11-12T19:12:43Z","closed_at":"2015-11-12T19:12:43Z","body":"and I don't like that it calls _class without guarding with create=False... I know that it might not be known to GitRepo -- but it mustn't even try to create anything there.  Should go upstairs first to detect .git anyways.\r\n\r\nHere is the example\r\n```\r\n(git)hopa:/tmp/test-archive-annex[master]svgtune-0.2.0\r\n$> python -c 'from datalad.cmdline.helpers import get_repo_instance;  from datalad.support.annexrepo import AnnexRepo;  print get_repo_instance(class_=AnnexRepo)'\r\nINFO:rdflib:RDFLib Version: 4.2.1                                                                                                                                 \r\n2015-11-09 23:12:54,636 [ERROR  ] /tmp/test-archive-annex/svgtune-0.2.0 (gitrepo.py:260)\r\nERROR  :datalad.gitrepo:/tmp/test-archive-annex/svgtune-0.2.0\r\nTraceback (most recent call last):\r\n  File \"<string>\", line 1, in <module>\r\n  File \"/home/yoh/proj/datalad/datalad/datalad/cmdline/helpers.py\", line 202, in get_repo_instance\r\n    (type_, abspath_))\r\nRuntimeError: No annex repository found in /tmp/test-archive-annex/svgtune-0.2.0\r\n(venv-tests)2 12408 ->1.....................................:Mon 09 Nov 2015 11:12:54 PM EST:.\r\n(git)hopa:/tmp/test-archive-annex[master]svgtune-0.2.0\r\n$> git annex info\r\nrepository mode: indirect\r\ntrusted repositories: 0\r\nsemitrusted repositories: 4\r\n\t00000000-0000-0000-0000-000000000001 -- web\r\n \t00000000-0000-0000-0000-000000000002 -- bittorrent\r\n \t06dd3743-9932-4823-9017-749d2ff727a8 -- yoh@hopa:/tmp/test-archive-annex [here]\r\n \t81b8e5ba-1d80-46b4-a8c5-c701b55bad8b -- [datalad-archives]\r\nuntrusted repositories: 0\r\ntransfers in progress: none\r\navailable local disk space: 1.05 gigabytes (+1 megabyte reserved)\r\nlocal annex keys: 5\r\nlocal annex size: 17.87 kilobytes\r\nannexed files in working tree: 4\r\nsize of annexed files in working tree: 12.75 kilobytes\r\nbloom filter size: 32 mebibytes (0% full)\r\nbackend usage: \r\n\tSHA256E: 9\r\n```"},"comment":{"url":"https://api.github.com/repos/datalad/datalad/issues/comments/156205158","html_url":"https://github.com/datalad/datalad/issues/294#issuecomment-156205158","issue_url":"https://api.github.com/repos/datalad/datalad/issues/294","id":156205158,"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},"created_at":"2015-11-12T19:12:43Z","updated_at":"2015-11-12T19:12:43Z","body":"I think I have misread the logic and #295 has addressed another concern (with create=False), so closing ;) thanks!"}}