lint-staged 10.1.0 → 10.1.1
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.
- package/lib/gitWorkflow.js +1 -1
- package/package.json +1 -1
package/lib/gitWorkflow.js
CHANGED
|
@@ -238,7 +238,7 @@ class GitWorkflow {
|
|
|
238
238
|
await Promise.all(
|
|
239
239
|
// stagedFileChunks includes staged files that lint-staged originally detected.
|
|
240
240
|
// Add only these files so any 3rd-party edits to other files won't be included in the commit.
|
|
241
|
-
this.stagedFileChunks.map(stagedFiles => this.execGit(['add', ...stagedFiles]))
|
|
241
|
+
this.stagedFileChunks.map(stagedFiles => this.execGit(['add', '--', ...stagedFiles]))
|
|
242
242
|
)
|
|
243
243
|
debug('Done adding task modifications to index!')
|
|
244
244
|
|