Comments (7)
Did it also show an error message?
from pretty-quick.
Nope, only this
from pretty-quick.
Since i’m working inside a client, it’s possible that it’s a network problem, I’ll take a look
from pretty-quick.
The error happens here:
https://unpkg.com/[email protected]/dist/scms/git.js
const getSinceRevision = exports.getSinceRevision = (directory, { staged, branch }) => {
try {
const revision = staged ? 'HEAD' : runGit(directory, ['merge-base', 'HEAD', branch || 'master']).stdout.trim();
return runGit(directory, ['rev-parse', '--short', revision]).stdout.trim();
} catch (error) {
if (/HEAD/.test(error.message) || staged && /Needed a single revision/.test(error.message)) {
return null;
}
throw error;
}
};
But this is quite unrelated to the last changes we did.
from pretty-quick.
Okay, these were my steps
npm cache clean --force
- remove
package-lock.json
- I was using pretty-quick version
1.8
, so I updated to1.10
- deleted node_modules and installed everything again
Now it's working
from pretty-quick.
Cool 👍- can we close this issue then?
from pretty-quick.
Let's close it. Sounds like git itself exited nonzero with no output. If it props up again we can investigate further.
from pretty-quick.
Related Issues (20)
- `pretty-quick --staged` in pre-commit has odd behavior in conjunction with `git commit PATH…`
- Round brackets pattern not working HOT 1
- pretty-quick does not find any changed file HOT 15
- git diff causing error in github action HOT 1
- Fix Readme for Husky 6.0.0 HOT 2
- pretty-quick does not work when "type": "module" is declared in package.json in a TypeScript project HOT 1
- Use newest prettier
- Executing pretty-quick in git worktree cannot detect scm HOT 2
- Ignore errors with husky precommit hook HOT 4
- Ignoring lines in html files doesnt work <!-- prettier-ignore --> HOT 1
- How to format all file?
- Format single quote to double when I commit HOT 1
- I would like to see the fixes applied using pretty-quick
- Bug: an invalid branch name does not produce a failure
- SyntaxError: Unexpected token (11:16) HOT 1
- Not working with npx & husky pre-commit hook HOT 1
- pretty-quick will break with prettier v3 HOT 32
- SyntaxError: Unexpected token ? HOT 3
- prettier.resolveConfig.sync is not a function HOT 6
- -c
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pretty-quick.