lint-staged 11.2.2 → 11.2.6

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.
@@ -56,7 +56,7 @@ const resolveGitRepo = async (cwd = process.cwd()) => {
56
56
  // read the path of the current directory relative to the top-level directory
57
57
  // don't read the toplevel directly, it will lead to an posix conform path on non posix systems (cygwin)
58
58
  const gitRel = normalize(await execGit(['rev-parse', '--show-prefix']))
59
- const gitDir = determineGitDir(cwd, gitRel)
59
+ const gitDir = determineGitDir(normalize(cwd), gitRel)
60
60
  const gitConfigDir = normalize(await resolveGitConfigDir(gitDir))
61
61
 
62
62
  debugLog('Resolved git directory to be `%s`', gitDir)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lint-staged",
3
- "version": "11.2.2",
3
+ "version": "11.2.6",
4
4
  "description": "Lint files staged by git",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/okonet/lint-staged",