We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7dbc5e9 commit 228312aCopy full SHA for 228312a
.github/workflows/go.yml
@@ -30,7 +30,7 @@ jobs:
30
local diff
31
git checkout -- .
32
"$@" >/dev/null || true
33
- if ! diff="$(git diff --exit-code)"; then
+ if ! diff="$(git diff -U1 --color --exit-code)"; then
34
printf '\n\e[31mError: running `\e[31;1m%s\e[31;22m` results in modifications that you must check into version control:\e[0m\n%s\n' "$*" "$diff" >&2
35
return 1
36
fi
0 commit comments