mirror of
https://github.com/Smaug123/gitea-repo-config
synced 2025-10-05 07:28:40 +00:00
Make hook better (#57)
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -1,3 +1,4 @@
|
||||
* eol=auto
|
||||
*.sh text eol=lf
|
||||
*.nix text eol=lf
|
||||
hooks/pre-push text eol=lf
|
||||
|
@@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
if ! dotnet tool run fantomas --check -r . ; then
|
||||
echo "Formatting incomplete. Consider running 'dotnet tool run fantomas -r .'"
|
||||
if ! dotnet tool run fantomas --check . ; then
|
||||
echo "Formatting incomplete. Consider running 'dotnet tool run fantomas .'"
|
||||
exit 1
|
||||
fi
|
||||
|
Reference in New Issue
Block a user