Skip to content

Error: pre-commit hook reports no such file or directory #40

Description

@bassettsj

Hey thanks for a great project. It has been working really well for the most part but, occasionally I am getting a strange error when the file can't be read.

I am running running on Node v5.0.0 on OSX 10.10

shell.js: internal error
Error: ENOENT: no such file or directory, open '/var/folders/x7/vd9x30kn449c40tfrx329cm40000gq/T/shelljs_fb6c1ea57c0eb32e296e'
    at Error (native)
    at Object.fs.openSync (fs.js:549:18)
    at Object.fs.readFileSync (fs.js:397:15)
    at execSync (~/app/node_modules/git-guppy/node_modules/shelljs/src/exec.js:105:24)
    at _exec (~/app/node_modules/git-guppy/node_modules/shelljs/src/exec.js:210:12)
    at ~/app/node_modules/git-guppy/node_modules/shelljs/src/common.js:182:23
    at ~/app/node_modules/git-guppy/lib/get-hook.js:27:22
    at wrappedMapper (~/app/node_modules/map-stream/index.js:84:19)
    at Stream.stream.write (~/app/node_modules/map-stream/index.js:96:21)
    at write (~/app/node_modules/vinyl-fs/node_modules/readable-stream/lib/_stream_readable.js:623:24)

Let me know if there is anything I can do to help solve or diagnose the issue.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions