{"action":"created","issue":{"url":"https://api.github.com/repos/jelmer/dulwich/issues/451","repository_url":"https://api.github.com/repos/jelmer/dulwich","labels_url":"https://api.github.com/repos/jelmer/dulwich/issues/451/labels{/name}","comments_url":"https://api.github.com/repos/jelmer/dulwich/issues/451/comments","events_url":"https://api.github.com/repos/jelmer/dulwich/issues/451/events","html_url":"https://github.com/jelmer/dulwich/issues/451","id":174441187,"number":451,"title":"Error when trying to pull with Python3","user":{"login":"Salamafet","id":783351,"avatar_url":"https://avatars.githubusercontent.com/u/783351?v=3","gravatar_id":"","url":"https://api.github.com/users/Salamafet","html_url":"https://github.com/Salamafet","followers_url":"https://api.github.com/users/Salamafet/followers","following_url":"https://api.github.com/users/Salamafet/following{/other_user}","gists_url":"https://api.github.com/users/Salamafet/gists{/gist_id}","starred_url":"https://api.github.com/users/Salamafet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Salamafet/subscriptions","organizations_url":"https://api.github.com/users/Salamafet/orgs","repos_url":"https://api.github.com/users/Salamafet/repos","events_url":"https://api.github.com/users/Salamafet/events{/privacy}","received_events_url":"https://api.github.com/users/Salamafet/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-09-01T05:42:46Z","updated_at":"2016-09-03T17:29:17Z","closed_at":"2016-09-03T17:28:52Z","body":"When I try to pull a folder with dulwich, I got this error:\r\n`AttributeError: 'NoneType' object has no attribute 'startswith'`\r\n\r\nI got the same error on windows or linux. The clone fonction works perfectly\r\n\r\nHere is my code:\r\n\r\n``` python\r\nfrom dulwich import porcelain\r\nimport ssl\r\n\r\ndepot_maj = \"https://github.com/jelmer/dulwich.git\"\r\n\r\n#Disable SSL verification for private server\r\nssl._create_default_https_context = ssl._create_unverified_context\r\n\r\n\r\n#porcelain.clone(depot_maj, \"test\")\r\nporcelain.pull(\"test\", depot_maj)\r\n```\r\n\r\nWhen i change the pull fonction with this:\r\n\r\n `porcelain.pull(\"test\", depot_maj, \"refs/heads/master\")`\r\n\r\nI got:\r\n\r\n `TypeError: startswith first arg must be str or a tuple of str, not bytes`\r\n\r\nI have post this problem on stackoverflow and one person say this is a bug with Dulwich and Python3."},"comment":{"url":"https://api.github.com/repos/jelmer/dulwich/issues/comments/244559139","html_url":"https://github.com/jelmer/dulwich/issues/451#issuecomment-244559139","issue_url":"https://api.github.com/repos/jelmer/dulwich/issues/451","id":244559139,"user":{"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},"created_at":"2016-09-03T17:29:17Z","updated_at":"2016-09-03T17:29:17Z","body":"Should be fixed now, please reopen if pull is still problematic for you with HEAD."}}
{"actor":{"display_login":"jelmer"}}