Skip to content

Commit

Permalink
fix: git-cz commit repoPath (#676)
Browse files Browse the repository at this point in the history
* fix: git-cz commit repoPath

* chore(deps): bump minimist from 1.2.0 to 1.2.3 (#721)

Bumps [minimist](https://github.com/substack/minimist) from 1.2.0 to 1.2.3.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.0...1.2.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): update dependency nyc to v15 (#704)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* fix: add babel spread plugin

* fix: move to babel.config.js

* fix: update azure devops images

* docs: add commitiquette (#727)

* fix(deps): bump vulnerable packages

* feature: remove dependency on ShellJS (#729)

* feature: avoid dependning on shelljs

* refactor: remove shelljs from tests

* refactor: simplify configLoader call

* fix: use shell flag when spawning npm init

Co-authored-by: hdmr14 <58992133+hdmr14@users.noreply.github.com>

* refactor: remove unused function isArray

* refactor: remove unused function isString

Co-authored-by: hdmr14 <58992133+hdmr14@users.noreply.github.com>

* feat: remove dependency on ShellJS (#729)

Empty commit to trigger release.

* fix(deps): update dependency cz-conventional-changelog to v3.2.0 (#657)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* fix: restore commitizen.congifLoader.load to public API (#733)

* fix: restore commitizen.congifLoader.load to public API

This reverts commit 468e924.

* chore: temporarily skip failing test

* fix: make cwd argument optional again (#735)

* docs: add .czrc support to README (#739)

* fix(deps): upgrade lodash to 4.17.20 and update package lock file

* docs: add cz-format-extension (#758)

* docs: Update `commitlint` adapter link (#751)

* docs: Update `commitlint` adapter link

* docs: Update link to commitlint adapter

* docs: add adapter for jira (#748)

We have created an adapter that is purposed for the JIRA workflow when you don't use _smart commits_. We have made sure that the adapter is well documented and easy to use.

We think that it is unique and would love for it to be recognized.

* chore(deps): update dependency nyc to v15.1.0 (#745)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* fix(cli): determine correct location of `COMMIT_EDITMSG` (#737)

If using git working trees, then `.git` is a file and not a directory: This file references its own
git directory within the main working tree. `$ git rev-parse --git-dir` will always return the
directory where the `COMMIT_EDITMSG` file should be placed.

* chore(deps): update dependency babel-plugin-istanbul to v5.2.0 (#658)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* chore(deps): update dependency semver to v6.3.0 (#659)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* fix(deps): update dependency inquirer to v6.5.2 (#664)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* feat: use cz as binary name (#767)

While still support the old git-cz binary name. Also improve the
documentation.

Closes #761

* fix: git-cz commit repoPath

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: jimthedev <jimthedev@gmail.com>
Co-authored-by: Martin McWhorter <martin@mcwhorter.org>
Co-authored-by: Linus Unnebäck <linus@folkdatorn.se>
Co-authored-by: hdmr14 <58992133+hdmr14@users.noreply.github.com>
Co-authored-by: Fernando Maia <fsmaia@gmail.com>
Co-authored-by: Jimmy Andrade <jimmy.andrade@thoughtworks.com>
Co-authored-by: tyankatsu <frips.ryilsufupe+dev@gmail.com>
Co-authored-by: Dura <chris-dura@users.noreply.github.com>
Co-authored-by: Julius Recep Colliander Celik <julius.cc@hotmail.com>
Co-authored-by: nutlike <mail@Qnert.com>
Co-authored-by: Felipe Santos <felipecassiors@gmail.com>
  • Loading branch information
15 people authored Aug 25, 2020
1 parent c3c533f commit 4929d03
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cli/strategies/git-cz.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import * as gitStrategy from './git';
// destructure for shorter apis
let { parse } = gitCzParser;

let { getPrompter, resolveAdapterPath } = adapter;
let { getPrompter, resolveAdapterPath, getGitRootPath } = adapter;
let { isClean } = staging;

export default gitCz;
Expand Down Expand Up @@ -55,7 +55,7 @@ function gitCz (rawGitArgs, environment, adapterConfig) {
let adapterPackageJson = getParsedPackageJsonFromPath(resolvedAdapterRootPath);
let cliPackageJson = getParsedPackageJsonFromPath(environment.cliPath);
console.log(`cz-cli@${cliPackageJson.version}, ${adapterPackageJson.name}@${adapterPackageJson.version}\n`);
commit(inquirer, process.cwd(), prompter, {
commit(inquirer, getGitRootPath(), prompter, {
args: parsedGitCzArgs,
disableAppendPaths: true,
emitData: true,
Expand Down
1 change: 1 addition & 0 deletions src/commitizen/adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export {
resolveAdapterPath,
getYarnAddStringMappings,
generateYarnAddAdapterCommand,
getGitRootPath,
};

/**
Expand Down

0 comments on commit 4929d03

Please sign in to comment.