Skip to content

Commit

Permalink
fix(adapter): allows git cz to be run from subdirectories (#292)
Browse files Browse the repository at this point in the history
looks for the adapter file relative to the project root rather than cwd

closes #187
  • Loading branch information
Patrick McElhaney authored and LinusU committed Aug 3, 2016
1 parent 0d70197 commit 625c95d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commitizen/adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ function resolveAdapterPath(inboundAdapterPath) {

// Resolve from process.cwd() if inboundAdapterPath is a path
let absoluteAdapterPath = isPath ?
path.resolve(process.cwd(), inboundAdapterPath) :
path.resolve(getNearestProjectRootDirectory(), inboundAdapterPath) :
inboundAdapterPath;

try {
Expand Down

0 comments on commit 625c95d

Please sign in to comment.