Skip to content

Commit

Permalink
fix(git): Use resolveGitDir in hasPartiallyStagedFiles (#520)
Browse files Browse the repository at this point in the history
Fixes #514
  • Loading branch information
okonet committed Oct 29, 2018
1 parent da42f8a commit af99172
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gitWorkflow.js
Expand Up @@ -51,7 +51,8 @@ async function getDiffForTrees(tree1, tree2, options) {
}

async function hasPartiallyStagedFiles(options) {
const files = await gStatus(options)
const cwd = options && options.cwd ? options.cwd : resolveGitDir()
const files = await gStatus({ cwd })
const partiallyStaged = files.filter(
file =>
file.index !== ' ' &&
Expand Down

0 comments on commit af99172

Please sign in to comment.