Coder Social home page Coder Social logo

Error when commiting about pretty-quick HOT 7 CLOSED

azz avatar azz commented on June 26, 2024
Error when commiting

from pretty-quick.

Comments (7)

jantimon avatar jantimon commented on June 26, 2024

Did it also show an error message?

from pretty-quick.

DavideCarvalho avatar DavideCarvalho commented on June 26, 2024

Nope, only this

from pretty-quick.

DavideCarvalho avatar DavideCarvalho commented on June 26, 2024

Since i’m working inside a client, it’s possible that it’s a network problem, I’ll take a look

from pretty-quick.

jantimon avatar jantimon commented on June 26, 2024

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.

DavideCarvalho avatar DavideCarvalho commented on June 26, 2024

Okay, these were my steps

  • npm cache clean --force
  • remove package-lock.json
  • I was using pretty-quick version 1.8, so I updated to 1.10
  • deleted node_modules and installed everything again
    Now it's working

from pretty-quick.

jantimon avatar jantimon commented on June 26, 2024

Cool 👍- can we close this issue then?

from pretty-quick.

azz avatar azz commented on June 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.