Skip to content

Commit 91b8264

Browse files
author
Hiroki Konishi
committed
Fix: ignore git command error message to /dev/null
1 parent 32da53b commit 91b8264

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rules/git_pmy_rules.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,17 @@
2828
"cmdGroups": [
2929
{
3030
"tag": "🌱:branch",
31-
"stmt": "git branch --format=\"%(refname:short)\"",
31+
"stmt": "git branch --format=\"%(refname:short)\" 2>/dev/null",
3232
"after": "awk '{print $0}'"
3333
},
3434
{
3535
"tag": "🔖:tag",
36-
"stmt": "git tag",
36+
"stmt": "git tag 2>/dev/null",
3737
"after": "awk '{print $0}'"
3838
},
3939
{
4040
"tag": "🍺:commit",
41-
"stmt": "git log --oneline -30 --color",
41+
"stmt": "git log --oneline -30 --color 2>/dev/null",
4242
"after": "awk '{print $1}'"
4343
}
4444
],

0 commit comments

Comments
 (0)