django/django — pull request #2701 by phpdude (2014-05-22 12:12:42+00:00)
Title: Fixed TarArchive.extract call to has_leading_dir

Django have bug with TarArchives extraction, it couldn't recognize leading_dir because of wrong parameters passed to has_leading_dir function.

Members variable is a list of TarInfo objects (tarfile.TarInfo), not just a plain path strings.

Problem fixed.

You can check this bug - just try to 'startproject' with tar.gz and zip archive template. In case of tar.gz archive it will not recognize leading dir of template and put project structure in folder (for example 'startproject --tempalte=xxx.tar.gz test' will make 'test/xxx/manage.py' instead of 'xxx/manage.py').