Skip to content

Commit 4929d03

Browse files
shixy96dependabot[bot]renovate[bot]renovate-botjimthedev
authored
fix: git-cz commit repoPath (#676)
* 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>
1 parent c3c533f commit 4929d03

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/cli/strategies/git-cz.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import * as gitStrategy from './git';
88
// destructure for shorter apis
99
let { parse } = gitCzParser;
1010

11-
let { getPrompter, resolveAdapterPath } = adapter;
11+
let { getPrompter, resolveAdapterPath, getGitRootPath } = adapter;
1212
let { isClean } = staging;
1313

1414
export default gitCz;
@@ -55,7 +55,7 @@ function gitCz (rawGitArgs, environment, adapterConfig) {
5555
let adapterPackageJson = getParsedPackageJsonFromPath(resolvedAdapterRootPath);
5656
let cliPackageJson = getParsedPackageJsonFromPath(environment.cliPath);
5757
console.log(`cz-cli@${cliPackageJson.version}, ${adapterPackageJson.name}@${adapterPackageJson.version}\n`);
58-
commit(inquirer, process.cwd(), prompter, {
58+
commit(inquirer, getGitRootPath(), prompter, {
5959
args: parsedGitCzArgs,
6060
disableAppendPaths: true,
6161
emitData: true,

src/commitizen/adapter.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export {
1717
resolveAdapterPath,
1818
getYarnAddStringMappings,
1919
generateYarnAddAdapterCommand,
20+
getGitRootPath,
2021
};
2122

2223
/**

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy