Commits

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)

             printout('  %s.%s' % (provider.__module__, 
                                   provider.__class__.__name__))
             for key, root in paths:
+                if not root:
+                    continue
                 source = os.path.normpath(root)
                 printout('   ', source)
                 if os.path.exists(source):