Skip to content

Conversation

@dchen
Copy link
Contributor

@dchen dchen commented Jun 6, 2016

To get the "relative root array", it was previously using indexOf to find the position of the directory that matches the project name. The name string isn't unique enough of an identifier, so if the same name was present in any directory above the project, it would unexpectedly match that one.

This modifies the behavior to check against the full root path instead. I also renamed the variable "path" to "workingPath" in a few places to avoid confusion with the path module.

Needs more testing. Fixes #66.

@CLAassistant
Copy link

CLAassistant commented Jun 6, 2016

CLA assistant check
All committers have signed the CLA.

@dchen dchen changed the title File tree matching uses full path instead of name to identify root #66 File tree matching uses full path instead of name to identify root (fixes #66) Jun 6, 2016
@dchen dchen changed the title File tree matching uses full path instead of name to identify root (fixes #66) File tree matching uses full path instead of name to identify root Jun 6, 2016
@gdowens
Copy link
Contributor

gdowens commented Jun 6, 2016

I know @dabbott has been working on a refactor for file tree logic — wait on this?

@gdowens gdowens merged commit 32e3af4 into decosoftware:master Jun 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants