Skip to content
New issue

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

Passing in directory path throws "EISDIR: illegal operation" error #2

Open
Luiz-N opened this issue Oct 9, 2017 · 1 comment
Open

Comments

@Luiz-N
Copy link

Luiz-N commented Oct 9, 2017

remoteOrigin.sync() works fine in a git repo but remoteOrigin.sync(process.cwd()) in the same repo throws the following error:

Error: EISDIR: illegal operation on a directory, read
    at Error (native)
    at Object.fs.readSync (fs.js:732:19)
    at tryReadSync (fs.js:487:20)
    at Object.fs.readFileSync (fs.js:535:19)
    at Function.parseSync [as sync]

This does work however:

remoteOrigin.sync(`${process.cwd()}/.git/config`)
@jonschlinkert
Copy link
Owner

Thanks, want to do a pr?

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

No branches or pull requests

2 participants