{"action":"closed","issue":{"url":"https://api.github.com/repos/jelmer/dulwich/issues/305","labels_url":"https://api.github.com/repos/jelmer/dulwich/issues/305/labels{/name}","comments_url":"https://api.github.com/repos/jelmer/dulwich/issues/305/comments","events_url":"https://api.github.com/repos/jelmer/dulwich/issues/305/events","html_url":"https://github.com/jelmer/dulwich/issues/305","id":80610870,"number":305,"title":"`IndexError: bytearray index out of range` due to escaped quote in config","user":{"login":"garyvdm","id":352175,"avatar_url":"https://avatars.githubusercontent.com/u/352175?v=3","gravatar_id":"","url":"https://api.github.com/users/garyvdm","html_url":"https://github.com/garyvdm","followers_url":"https://api.github.com/users/garyvdm/followers","following_url":"https://api.github.com/users/garyvdm/following{/other_user}","gists_url":"https://api.github.com/users/garyvdm/gists{/gist_id}","starred_url":"https://api.github.com/users/garyvdm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garyvdm/subscriptions","organizations_url":"https://api.github.com/users/garyvdm/orgs","repos_url":"https://api.github.com/users/garyvdm/repos","events_url":"https://api.github.com/users/garyvdm/events{/privacy}","received_events_url":"https://api.github.com/users/garyvdm/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jelmer/dulwich/labels/bug","name":"bug","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/jelmer/dulwich/milestones/3","html_url":"https://github.com/jelmer/dulwich/milestones/soon","labels_url":"https://api.github.com/repos/jelmer/dulwich/milestones/3/labels","id":1141346,"number":3,"title":"soon","description":"bugs that we'd like to fix soon (ideally the next release), but that do not have a particular targeted release.","creator":{"login":"jelmer","id":49032,"avatar_url":"https://avatars.githubusercontent.com/u/49032?v=3","gravatar_id":"","url":"https://api.github.com/users/jelmer","html_url":"https://github.com/jelmer","followers_url":"https://api.github.com/users/jelmer/followers","following_url":"https://api.github.com/users/jelmer/following{/other_user}","gists_url":"https://api.github.com/users/jelmer/gists{/gist_id}","starred_url":"https://api.github.com/users/jelmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jelmer/subscriptions","organizations_url":"https://api.github.com/users/jelmer/orgs","repos_url":"https://api.github.com/users/jelmer/repos","events_url":"https://api.github.com/users/jelmer/events{/privacy}","received_events_url":"https://api.github.com/users/jelmer/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":1,"state":"open","created_at":"2015-05-30T19:37:17Z","updated_at":"2015-09-13T12:25:09Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-05-25T17:41:33Z","updated_at":"2015-09-13T12:25:09Z","closed_at":"2015-09-13T12:25:09Z","body":"I tried to run `dulwich commit`. I get this error. This happens in both python2 and python3:\r\n\r\n    garyvdm@garyvdm ~/dev/dulwich (git)-[master] % dulwich commit  --message \"bar\"\r\n    Traceback (most recent call last):\r\n      File \"/home/garyvdm/dev/dulwich/ve34/bin/dulwich\", line 6, in <module>\r\n        exec(compile(open(__file__).read(), __file__, 'exec'))\r\n      File \"/home/garyvdm/dev/dulwich/bin/dulwich\", line 381, in <module>\r\n        commands[cmd](sys.argv[2:])\r\n      File \"/home/garyvdm/dev/dulwich/bin/dulwich\", line 187, in cmd_commit\r\n        porcelain.commit(\".\", message=opts[\"--message\"])\r\n      File \"/home/garyvdm/dev/dulwich/dulwich/porcelain.py\", line 167, in commit\r\n        committer=committer)\r\n      File \"/home/garyvdm/dev/dulwich/dulwich/repo.py\", line 568, in do_commit\r\n        committer = self._get_user_identity()\r\n      File \"/home/garyvdm/dev/dulwich/dulwich/repo.py\", line 498, in _get_user_identity\r\n        config = self.get_config_stack()\r\n      File \"/home/garyvdm/dev/dulwich/dulwich/repo.py\", line 388, in get_config_stack\r\n        backends = [self.get_config()] + StackedConfig.default_backends()\r\n      File \"/home/garyvdm/dev/dulwich/dulwich/config.py\", line 382, in default_backends\r\n        cf = ConfigFile.from_path(path)\r\n      File \"/home/garyvdm/dev/dulwich/dulwich/config.py\", line 326, in from_path\r\n        ret = cls.from_file(f)\r\n      File \"/home/garyvdm/dev/dulwich/dulwich/config.py\", line 306, in from_file\r\n        value = _parse_string(value)\r\n      File \"/home/garyvdm/dev/dulwich/dulwich/config.py\", line 182, in _parse_string\r\n        ret.extend(_unescape_value(block))\r\n      File \"/home/garyvdm/dev/dulwich/dulwich/config.py\", line 214, in _unescape_value\r\n        ret.append(table[value[i]])\r\n    IndexError: bytearray index out of range\r\n"}}