{"action":"reopened","issue":{"url":"https://api.github.com/repos/gitpython-developers/GitPython/issues/463","repository_url":"https://api.github.com/repos/gitpython-developers/GitPython","labels_url":"https://api.github.com/repos/gitpython-developers/GitPython/issues/463/labels{/name}","comments_url":"https://api.github.com/repos/gitpython-developers/GitPython/issues/463/comments","events_url":"https://api.github.com/repos/gitpython-developers/GitPython/issues/463/events","html_url":"https://github.com/gitpython-developers/GitPython/issues/463","id":158620158,"number":463,"title":"Issues with AutoInterrupt in conjunction with sys.exit on python 3.5","user":{"login":"Heiko-san","id":10023733,"avatar_url":"https://avatars.githubusercontent.com/u/10023733?v=3","gravatar_id":"","url":"https://api.github.com/users/Heiko-san","html_url":"https://github.com/Heiko-san","followers_url":"https://api.github.com/users/Heiko-san/followers","following_url":"https://api.github.com/users/Heiko-san/following{/other_user}","gists_url":"https://api.github.com/users/Heiko-san/gists{/gist_id}","starred_url":"https://api.github.com/users/Heiko-san/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Heiko-san/subscriptions","organizations_url":"https://api.github.com/users/Heiko-san/orgs","repos_url":"https://api.github.com/users/Heiko-san/repos","events_url":"https://api.github.com/users/Heiko-san/events{/privacy}","received_events_url":"https://api.github.com/users/Heiko-san/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gitpython-developers/GitPython/labels/waiting%20for%20feedback","name":"waiting for feedback","color":"ff8c00"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-06-06T07:58:17Z","updated_at":"2016-08-02T03:33:48Z","closed_at":null,"body":"The destructor of the cmd class (actually AutoInterrupt) seems to throw some errors using python 3.5 on Arclinux:\r\n```\r\nException ignored in: <bound method Git.AutoInterrupt.__del__ of <git.cmd.Git.AutoInterrupt object at 0x7f7c2b101d68>>\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3.5/site-packages/git/cmd.py\", line 294, in __del__\r\nTypeError: 'NoneType' object is not callable\r\nException ignored in: <bound method Git.AutoInterrupt.__del__ of <git.cmd.Git.AutoInterrupt object at 0x7f7c2b101cc0>>\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3.5/site-packages/git/cmd.py\", line 294, in __del__\r\nTypeError: 'NoneType' object is not callable\r\n```\r\n\r\nIt seems this error is triggered by a call to sys.exit(0) at the end of my script, since it doesn't appear if I comment it out.\r\nHowever I couldn't reproduce this behavior with python 2.7, here sys.exit(0) seems to be working with the module correctly.\r\n\r\nWhat I do is simply clone a repo, add some files commit and push them to a remote.\r\n```\r\n...\r\nrepo = Repo.clone_from(target_git_path, target_temp_dir)\r\n...\r\nrepo.index.add([file])\r\n...\r\nrepo.index.commit('Initial commit')\r\n...\r\nrefspec='refs/heads/{0}:refs/heads/{0}'.format(repo.active_branch) # this will fix error if user has set \"push.default = matching\"\r\nrepo.remotes.origin.push(refspec=refspec)\r\n```"}}
{"actor":{"display_login":"Byron"}}