STINNER Victor added the comment: I applied the enhanced (called bugfix by Brett ;-)) to 2.7, 3.5, 3.6 and master (3.7). I close the issue.
Example: haypo@selma$ cat .git gitdir: /home/haypo/prog/python/master/.git/worktrees/2.7 haypo@selma$ ./python Python 2.7.13+ (heads/test_ssl_27:dda4d78, May 3 2017, 03:25:45) [GCC 6.3.1 20161221 (Red Hat 6.3.1-1)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> sys._git ('CPython', 'heads/test_ssl_27', 'dda4d78') ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30232> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com