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

If is initial commit, pretty-quick throw e error. #11

Closed
BiosSun opened this issue Jan 25, 2018 · 1 comment
Closed

If is initial commit, pretty-quick throw e error. #11

BiosSun opened this issue Jan 25, 2018 · 1 comment
Labels
bug Something isn't working

Comments

@BiosSun
Copy link

BiosSun commented Jan 25, 2018

env

  • pretty-quick: 1.2.2
  • husky: 0.14.3
  • node: 8.9.3
  • yarn: 1.3.2
  • System: macOS 10.13.2

description

If is initial commit, pretty-quick throw e error:

husky > npm run -s precommit (node v8.9.3)

~/demo/node_modules/execa/index.js:303
		throw (result.error || new Error(result.stderr === '' ? result.stdout : result.stderr));
		^

Error: fatal: Needed a single revision

    at Function.module.exports.sync (~/demo/node_modules/execa/index.js:303:26)
    at runGit (~/demo/node_modules/pretty-quick/dist/scms/git.js:29:53)
    at Object.exports.getSinceRevision (~/demo/node_modules/pretty-quick/dist/scms/git.js:37:10)
    at exports.default (~/demo/node_modules/pretty-quick/dist/index.js:39:33)
    at Object.<anonymous> (~/demo/node_modules/pretty-quick/bin/pretty-quick.js:12:1)
    at Module._compile (module.js:635:30)
    at Object.Module._extensions..js (module.js:646:10)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)
    at Function.Module.runMain (module.js:676:10)
    at startup (bootstrap_node.js:187:16)
    at bootstrap_node.js:608:3
@azz azz added the bug Something isn't working label Jan 26, 2018
@azz azz closed this as completed in #12 Jan 27, 2018
@azz
Copy link
Member

azz commented Jan 27, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants