Skip to content

Commit 6bbc534

Browse files
author
Ian Walter
authored
Fixing git diff arg
1 parent 42f0cd3 commit 6bbc534

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ async function run () {
3131
await execa('git', ['add', files])
3232

3333
// Check if there are staged changes.
34-
const args = ['diff', '--staged', '--names-only']
34+
const args = ['diff', '--staged', '--name-only']
3535
const { stdout: hasStaged } = await execa('git', args)
3636
if (hasStaged) {
3737
// Commit the changes.

0 commit comments

Comments
 (0)