We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When calling parse('./directory'), the string is supposed to be interpreted as cwd. https://github.com/jonschlinkert/parse-git-config/blob/master/index.js#L36
parse('./directory')
cwd
Yet that value is passed to resolveConfigPath('./directory') which treats it as the type instead of cwd. https://github.com/jonschlinkert/parse-git-config/blob/master/index.js#L58 https://github.com/jonschlinkert/parse-git-config/blob/master/index.js#L89 https://github.com/jonschlinkert/parse-git-config/blob/master/index.js#L108
resolveConfigPath('./directory')
type
Additionally, this call to configPath passes the type but omits cwd. So when you call resolveConfigPath({cwd, type}) -- or pass the same options object to parse -- it will not do the right thing. https://github.com/jonschlinkert/parse-git-config/blob/master/index.js#L110
configPath
resolveConfigPath({cwd, type})
parse
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When calling
parse('./directory')
, the string is supposed to be interpreted ascwd
.https://github.com/jonschlinkert/parse-git-config/blob/master/index.js#L36
Yet that value is passed to
resolveConfigPath('./directory')
which treats it as thetype
instead ofcwd
.https://github.com/jonschlinkert/parse-git-config/blob/master/index.js#L58
https://github.com/jonschlinkert/parse-git-config/blob/master/index.js#L89
https://github.com/jonschlinkert/parse-git-config/blob/master/index.js#L108
Additionally, this call to
configPath
passes thetype
but omitscwd
. So when you callresolveConfigPath({cwd, type})
-- or pass the same options object toparse
-- it will not do the right thing.https://github.com/jonschlinkert/parse-git-config/blob/master/index.js#L110
The text was updated successfully, but these errors were encountered: