{"action":"opened","issue":{"url":"https://api.github.com/repos/user-cont/source-git/issues/25","repository_url":"https://api.github.com/repos/user-cont/source-git","labels_url":"https://api.github.com/repos/user-cont/source-git/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/user-cont/source-git/issues/25/comments","events_url":"https://api.github.com/repos/user-cont/source-git/issues/25/events","html_url":"https://github.com/user-cont/source-git/issues/25","id":389317204,"node_id":"MDU6SXNzdWUzODkzMTcyMDQ=","number":25,"title":"a traceback for container-based repo","user":{"login":"TomasTomecek","id":1662493,"node_id":"MDQ6VXNlcjE2NjI0OTM=","avatar_url":"https://avatars0.githubusercontent.com/u/1662493?v=4","gravatar_id":"","url":"https://api.github.com/users/TomasTomecek","html_url":"https://github.com/TomasTomecek","followers_url":"https://api.github.com/users/TomasTomecek/followers","following_url":"https://api.github.com/users/TomasTomecek/following{/other_user}","gists_url":"https://api.github.com/users/TomasTomecek/gists{/gist_id}","starred_url":"https://api.github.com/users/TomasTomecek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomasTomecek/subscriptions","organizations_url":"https://api.github.com/users/TomasTomecek/orgs","repos_url":"https://api.github.com/users/TomasTomecek/repos","events_url":"https://api.github.com/users/TomasTomecek/events{/privacy}","received_events_url":"https://api.github.com/users/TomasTomecek/received_events","type":"User","site_admin":false},"labels":[{"id":1117874204,"node_id":"MDU6TGFiZWwxMTE3ODc0MjA0","url":"https://api.github.com/repos/user-cont/source-git/labels/bug","name":"bug","color":"d73a4a","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-10T14:07:42Z","updated_at":"2018-12-10T14:07:42Z","closed_at":null,"author_association":"MEMBER","body":"even though the repo is not related to sg, we should exit early and not traceback\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"sourcegit/cli/sourcegit_base.py\", line 45, in <module>\r\n    sourcegit_base()\r\n  File \"/usr/lib/python3.7/site-packages/click/core.py\", line 721, in __call__\r\n    return self.main(*args, **kwargs)\r\n  File \"/usr/lib/python3.7/site-packages/click/core.py\", line 696, in main\r\n    rv = self.invoke(ctx)\r\n  File \"/usr/lib/python3.7/site-packages/click/core.py\", line 1065, in invoke\r\n    return _process_result(sub_ctx.command.invoke(sub_ctx))\r\n  File \"/usr/lib/python3.7/site-packages/click/core.py\", line 894, in invoke\r\n    return ctx.invoke(self.callback, **ctx.params)\r\n  File \"/usr/lib/python3.7/site-packages/click/core.py\", line 534, in invoke\r\n    return callback(*args, **kwargs)\r\n  File \"/usr/lib/python3.7/site-packages/click/decorators.py\", line 64, in new_func\r\n    return ctx.invoke(f, obj, *args[1:], **kwargs)\r\n  File \"/usr/lib/python3.7/site-packages/click/core.py\", line 534, in invoke\r\n    return callback(*args, **kwargs)\r\n  File \"/home/tt/g/user-cont/source-git/sourcegit/cli/watch_sg_pr.py\", line 50, in watch_pr\r\n    dest_dir = sync.sync_using_fedmsg_dict(msg)\r\n  File \"/home/tt/g/user-cont/source-git/sourcegit/sync.py\", line 35, in sync_using_fedmsg_dict\r\n    pr_url=fedmsg_dict[\"msg\"][\"pull_request\"][\"html_url\"],\r\n  File \"/home/tt/g/user-cont/source-git/sourcegit/sync.py\", line 64, in sync\r\n    self.checkout_pr(repo=repo, pr_id=pr_id)\r\n  File \"/home/tt/g/user-cont/source-git/sourcegit/sync.py\", line 172, in checkout_pr\r\n    repo.remote().fetch(refspec=f\"pull/{pr_id}/head:pull/{pr_id}\")\r\n  File \"/usr/lib/python3.7/site-packages/git/remote.py\", line 789, in fetch\r\n    res = self._get_fetch_info_from_stderr(proc, progress)\r\n  File \"/usr/lib/python3.7/site-packages/git/remote.py\", line 675, in _get_fetch_info_from_stderr\r\n    proc.wait(stderr=stderr_text)\r\n  File \"/usr/lib/python3.7/site-packages/git/cmd.py\", line 415, in wait\r\n    raise GitCommandError(self.args, status, errstr)\r\ngit.exc.GitCommandError: Cmd('git') failed due to: exit code(128)\r\n  cmdline: git fetch -v origin pull/52/head:pull/52\r\n  stderr: 'fatal: Refusing to fetch into current branch refs/heads/pull/52 of non-bare repository'\r\n```\r\n\r\n```\r\n'msg_id': '2018-5765d176-a79e-44d5-baed-97eafc459779'\r\n```"}}
{"actor":{"display_login":"TomasTomecek"}}