lint-staged 10.0.8 → 10.0.9

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.
@@ -16,7 +16,7 @@ const fsLstat = promisify(fs.lstat)
16
16
  * submodules and worktrees
17
17
  */
18
18
  const resolveGitConfigDir = async gitDir => {
19
- const defaultDir = path.resolve(gitDir, '.git')
19
+ const defaultDir = normalize(path.join(gitDir, '.git'))
20
20
  const stats = await fsLstat(defaultDir)
21
21
  // If .git is a directory, use it
22
22
  if (stats.isDirectory()) return defaultDir
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lint-staged",
3
- "version": "10.0.8",
3
+ "version": "10.0.9",
4
4
  "description": "Lint files staged by git",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/okonet/lint-staged",