lint-staged 15.2.6 → 15.2.7

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.
@@ -18,14 +18,10 @@ export const resolveGitRepo = async (cwd = process.cwd()) => {
18
18
  debugLog('Unset GIT_WORK_TREE (was `%s`)', process.env.GIT_WORK_TREE)
19
19
  delete process.env.GIT_WORK_TREE
20
20
 
21
- const gitDir = normalizePath(
22
- await execGit(['rev-parse', '--path-format=absolute', '--show-toplevel'], { cwd })
23
- )
21
+ const gitDir = normalizePath(await execGit(['rev-parse', '--show-toplevel'], { cwd }))
24
22
  debugLog('Resolved git directory to be `%s`', gitDir)
25
23
 
26
- const gitConfigDir = normalizePath(
27
- await execGit(['rev-parse', '--path-format=absolute', '--absolute-git-dir'], { cwd })
28
- )
24
+ const gitConfigDir = normalizePath(await execGit(['rev-parse', '--absolute-git-dir'], { cwd }))
29
25
  debugLog('Resolved git config directory to be `%s`', gitConfigDir)
30
26
 
31
27
  return { gitDir, gitConfigDir }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lint-staged",
3
- "version": "15.2.6",
3
+ "version": "15.2.7",
4
4
  "description": "Lint files staged by git",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/okonet/lint-staged",