mirror of
https://github.com/Smaug123/gitea-repo-config
synced 2025-10-07 08: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
|
* eol=auto
|
||||||
*.sh text eol=lf
|
*.sh text eol=lf
|
||||||
*.nix text eol=lf
|
*.nix text eol=lf
|
||||||
|
hooks/pre-push text eol=lf
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
if ! dotnet tool run fantomas --check -r . ; then
|
if ! dotnet tool run fantomas --check . ; then
|
||||||
echo "Formatting incomplete. Consider running 'dotnet tool run fantomas -r .'"
|
echo "Formatting incomplete. Consider running 'dotnet tool run fantomas .'"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user