Skip to content
This repository was archived by the owner on Mar 31, 2022. It is now read-only.

Support .pairs in the user's HOME directory, as advertised. #26

Merged
merged 2 commits into from
Dec 16, 2014
Merged

Support .pairs in the user's HOME directory, as advertised. #26

merged 2 commits into from
Dec 16, 2014

Conversation

flavorjones
Copy link
Contributor

The README file states that a .pairs file may be "in project root or your home folder." This isn't true unless the working directory is under the user's home directory.

This PR contains two commits: one to slightly clean up the directory-search logic; and then a second to implement the addition of the user's home directory to the end of the search path.

…list of ancestor directories.

This is preparation for further work.
This fixes the actual behavior to match the documentation, which states that the `.pairs` file may be in the user's home directory.
@tjarratt
Copy link
Contributor

I've been hit by this bug twice in the last week. Really happy to see someone fixing it! The original logic for looking up the directory was ... certainly unique, but I can't say I'm sad to see it go.

@flavorjones flavorjones mentioned this pull request Dec 16, 2014
ragaskar added a commit that referenced this pull request Dec 16, 2014
Support `.pairs` in the user's HOME directory, as advertised.
@ragaskar ragaskar merged commit 99d2b20 into vmware-archive:master Dec 16, 2014
@flavorjones
Copy link
Contributor Author

:highfive:

@flavorjones flavorjones deleted the support-homedir-config branch January 15, 2015 18:56
@flavorjones
Copy link
Contributor Author

In 1.4.0.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants