Commit graph

4 commits

Author SHA1 Message Date
Álvaro Brey Vilas
d23d20f31b
Fix git hooks for new source location
Signed-off-by: Álvaro Brey Vilas <alvaro.brey@nextcloud.com>
2022-03-11 11:42:11 +01:00
Álvaro Brey Vilas
267c4c2b72
pre-push hook: Exclude merges from signoff check
Signed-off-by: Álvaro Brey Vilas <alvaro.brey@nextcloud.com>
2021-10-13 09:55:07 +02:00
Álvaro Brey Vilas
a38edb92dd
Improvements to git hooks
- pre-commit: Suppress all output and show reduced results.
   This is more concise and avoids unreadable errors when committing from an IDE
 - pre-push: Format with shell formatter, fix typo

Signed-off-by: Álvaro Brey Vilas <alvaro.brey@nextcloud.com>
2021-09-27 11:42:20 +02:00
Álvaro Brey Vilas
556982ad8b
Add simple git hooks and gradle task to install them
- Pre-commit hook checks ktlint and detekt
 - Pre-push hook checks signoff

Signed-off-by: Álvaro Brey Vilas <alvaro.brey@nextcloud.com>
2021-09-24 14:07:11 +02:00