lint-staged 12.1.3 → 12.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -54,7 +54,7 @@ export const resolveGitRepo = async (cwd = process.cwd()) => {
54
54
 
55
55
  // read the path of the current directory relative to the top-level directory
56
56
  // don't read the toplevel directly, it will lead to an posix conform path on non posix systems (cygwin)
57
- const gitRel = normalize(await execGit(['rev-parse', '--show-prefix']))
57
+ const gitRel = normalize(await execGit(['rev-parse', '--show-prefix'], { cwd }))
58
58
  const gitDir = determineGitDir(normalize(cwd), gitRel)
59
59
  const gitConfigDir = normalize(await resolveGitConfigDir(gitDir))
60
60
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lint-staged",
3
- "version": "12.1.3",
3
+ "version": "12.1.4",
4
4
  "description": "Lint files staged by git",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/okonet/lint-staged",