fix(hook): pre-commit hook explicitly passes --staged flag
This commit is contained in:
1 parent
1493b0a392
commit
16fd83412d
1 file changed
+1
-1
+1
-1
@@ -12,7 +12,7 @@ import (
|
|||||||
const preCommitScript = `#!/bin/sh
|
const preCommitScript = `#!/bin/sh
|
||||||
# git-air pre-commit hook
|
# git-air pre-commit hook
|
||||||
echo "[git-air] 正在执行 Commit 前代码自动化评审..."
|
echo "[git-air] 正在执行 Commit 前代码自动化评审..."
|
||||||
git-air
|
git-air --staged
|
||||||
`
|
`
|
||||||
|
|
||||||
var hookCmd = &cobra.Command{
|
var hookCmd = &cobra.Command{
|
||||||
|
|||||||
Reference in new issue
Block a user