Git Product home page Git Product logo

Comments (5)

carloscuesta avatar carloscuesta commented on May 29, 2024

Did you used the hook init method before? If it’s true that’s the issue you should delete the hook file.

However, you can try the cli on a fresh git repository?

Create a new directory, run git init add some random files and try to use the -c option. It should work as expected

from gitmoji-cli.

kamontat avatar kamontat commented on May 29, 2024

Never and I try but still freeze.

from gitmoji-cli.

carloscuesta avatar carloscuesta commented on May 29, 2024

It's working fine for me @kamontat. There should be an issue with your environment

screen shot 2017-10-21 at 13 28 21

from gitmoji-cli.

kamontat avatar kamontat commented on May 29, 2024

After I enter Issue and pr, what is script doing? Just call commit?

from gitmoji-cli.

carloscuesta avatar carloscuesta commented on May 29, 2024

gitmoji-cli/src/gitmoji.js

Lines 117 to 143 in eac2b61

_commit (answers) {
const title = `${answers.gitmoji} ${answers.title}`
const prefixReference = config.getIssueFormat() === constants.GITHUB
? '#'
: ''
const reference = (answers.reference)
? `${prefixReference}${answers.reference}`
: ''
const signed = config.getSignedCommit() ? '-S' : ''
const body = `${answers.message} ${reference}`
const commit = `git commit ${signed} -m "${title}" -m "${body}"`
if (!this._isAGitRepo()) {
return this._errorMessage('Not a git repository')
}
if (config.getAutoAdd()) {
execa.stdout('git', ['add', '.'])
.then((res) => console.log(chalk.blue(res)))
.catch((err) => this._errorMessage(err.stderr))
}
execa.shell(commit)
.then((res) => console.log(chalk.blue(res.stdout)))
.catch((err) => this._errorMessage(err.stderr ? err.stderr : err.stdout))
return commit
}

from gitmoji-cli.

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.