Opened 6 years ago
[PATCH] Project index does not deal well with non-projects in it's parent dir
|Reported by:||mpalmer@…||Owned by:||coderanger|
Pretty trivial to reproduce:
cd $MASTER_TRAC_DIR touch ../foo
Then load up the project index in your master environment, and get an "env used before assignment" Trac bomb.
I've got a patch that fixes this, although it probably isn't a Python-optimal way of doing it.
Personally, I think the project list should be taken from the master project's tracforge_projects table, as that is a far more reliable indication of relationships than "happens to be in the same directory as the master". There'll be a separate ticket/patch for that once I get it going.