{"action":"opened","issue":{"url":"https://api.github.com/repos/nipy/heudiconv/issues/228","repository_url":"https://api.github.com/repos/nipy/heudiconv","labels_url":"https://api.github.com/repos/nipy/heudiconv/issues/228/labels{/name}","comments_url":"https://api.github.com/repos/nipy/heudiconv/issues/228/comments","events_url":"https://api.github.com/repos/nipy/heudiconv/issues/228/events","html_url":"https://github.com/nipy/heudiconv/issues/228","id":339560507,"node_id":"MDU6SXNzdWUzMzk1NjA1MDc=","number":228,"title":"datalad option fails with: \"warning: setlocale: LC_ALL: cannot change locale (en_CA.ISO-8859-1)\"","user":{"login":"tedstrauss","id":930560,"node_id":"MDQ6VXNlcjkzMDU2MA==","avatar_url":"https://avatars2.githubusercontent.com/u/930560?v=4","gravatar_id":"","url":"https://api.github.com/users/tedstrauss","html_url":"https://github.com/tedstrauss","followers_url":"https://api.github.com/users/tedstrauss/followers","following_url":"https://api.github.com/users/tedstrauss/following{/other_user}","gists_url":"https://api.github.com/users/tedstrauss/gists{/gist_id}","starred_url":"https://api.github.com/users/tedstrauss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tedstrauss/subscriptions","organizations_url":"https://api.github.com/users/tedstrauss/orgs","repos_url":"https://api.github.com/users/tedstrauss/repos","events_url":"https://api.github.com/users/tedstrauss/events{/privacy}","received_events_url":"https://api.github.com/users/tedstrauss/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-09T18:33:48Z","updated_at":"2018-07-09T18:33:48Z","closed_at":null,"author_association":"NONE","body":"At the end of a successful run, the datalad step fails with this: \r\n\r\n```\r\nTraceback (most recent call last):                                                                                                                                               \r\n  File \"/usr/local/bin/heudiconv\", line 11, in <module>\r\n    load_entry_point('heudiconv==0.5.1', 'console_scripts', 'heudiconv')()\r\n  File \"/usr/local/lib/python2.7/dist-packages/heudiconv-0.5.1-py2.7.egg/heudiconv/cli/run.py\", line 125, in main\r\n    process_args(args)\r\n  File \"/usr/local/lib/python2.7/dist-packages/heudiconv-0.5.1-py2.7.egg/heudiconv/cli/run.py\", line 351, in process_args\r\n    add_to_datalad(outdir, study_outdir, msg, args.bids)\r\n  File \"/usr/local/lib/python2.7/dist-packages/heudiconv-0.5.1-py2.7.egg/heudiconv/external/dlad.py\", line 100, in add_to_datalad\r\n    ds.add('.gitattributes', to_git=True, save=False)\r\n  File \"/usr/local/lib/python2.7/dist-packages/datalad-0.10.1-py2.7.egg/datalad/distribution/dataset.py\", line 444, in apply_func\r\n    return f(**kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/datalad-0.10.1-py2.7.egg/datalad/interface/utils.py\", line 478, in eval_func\r\n    return return_func(generator_func)(*args, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/datalad-0.10.1-py2.7.egg/datalad/interface/utils.py\", line 466, in return_func\r\n    results = list(results)\r\n  File \"/usr/local/lib/python2.7/dist-packages/datalad-0.10.1-py2.7.egg/datalad/interface/utils.py\", line 421, in generator_func\r\n    result_renderer, result_xfm, _result_filter, **_kwargs):\r\n  File \"/usr/local/lib/python2.7/dist-packages/datalad-0.10.1-py2.7.egg/datalad/interface/utils.py\", line 490, in _process_results\r\n    for res in results:\r\n  File \"/usr/local/lib/python2.7/dist-packages/datalad-0.10.1-py2.7.egg/datalad/distribution/add.py\", line 215, in __call__\r\n    GitRepo(refds_path).get_hexsha() \\\r\n  File \"/usr/local/lib/python2.7/dist-packages/datalad-0.10.1-py2.7.egg/datalad/support/gitrepo.py\", line 1189, in get_hexsha\r\n    raise e\r\ndatalad.support.exceptions.CommandError: CommandError: command '['git', '-c', 'receive.autogc=0', '-c', 'gc.auto=0', 'show', '--no-patch', '--format=%H', '--']' failed with exitcode 128\r\nFailed to run ['git', '-c', 'receive.autogc=0', '-c', 'gc.auto=0', 'show', '--no-patch', '--format=%H', '--'] under '/home/bic/tstrauss/Documents/heudi/subject'. Exit code=128. out= err=/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_CA.ISO-8859-1)\r\nfatal: Not a git repository (or any parent up to mount point /home/bic)\r\nStopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).\r\n\r\n```"}}
{"actor":{"display_login":"tedstrauss"}}