1. Alex Willmer
  2. trac-ticketlinks


cboos  committed 6ecdebc

env: fix a deploy glitch with the newly introduced `[inherit] htdocs_dir` setting (r10167).

By default its value is `''`, which translates to `'.'` due to `os.path.normpath`, so this results in `trac-admin ... deploy /target` creating a recursive copy of the current directory below `/target/htdocs/shared`! Avoid this by skipping empty paths.

  • Participants
  • Parent commits 4fbeaad
  • Branches trunk

Comments (0)

Files changed (1)

File trac/env.py

View file
  • Ignore whitespace
             printout('  %s.%s' % (provider.__module__, 
             for key, root in paths:
+                if not root:
+                    continue
                 source = os.path.normpath(root)
                 printout('   ', source)
                 if os.path.exists(source):