Browse files

[1.2.X] Fixed #14145 - undeterministic behavior when project or app t…

…emplate contains dotdir

Thanks to marbu for report and patch.

Backport of [13668] from trunk.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 7a1b694 commit 7a601b3fc121d613dc56cd1db82a128f0fd95fa1 @spookylukey spookylukey committed Sep 3, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/core/management/
@@ -394,9 +394,9 @@ def copy_helper(style, app_or_project, name, directory, other_name=''):
relative_dir = d[len(template_dir)+1:].replace('%s_name' % app_or_project, name)
if relative_dir:
os.mkdir(os.path.join(top_dir, relative_dir))
- for i, subdir in enumerate(subdirs):
+ for subdir in subdirs[:]:
if subdir.startswith('.'):
- del subdirs[i]
+ subdirs.remove(subdir)
for f in files:
if not f.endswith('.py'):
# Ignore .pyc, .pyo, .py.class etc, as they cause various

0 comments on commit 7a601b3

Please sign in to comment.