Project automation with Git Hooks with Kotlin, ktlint, and pre-commit hook

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ก.ย. 2024

ความคิดเห็น • 5

  • @mobiledevpro
    @mobiledevpro 8 หลายเดือนก่อน +1

    Interesting topic about hooks. Thanks for the excellent explanation.

    • @codersee
      @codersee  8 หลายเดือนก่อน +1

      Happy to hear that!
      Yup, hooks are a really simple way to add some automation, checks, and things like that to the project :D

  • @monkekar1m
    @monkekar1m 4 หลายเดือนก่อน

    thank you for your tutorial, but i faced a problem: after pre-commit hook is copied to .git/hooks by gradle task, it is set to non-executable by default and has to be set to executable manually. I tried automating it with exec task that runs 'chmod +x', but it seems to fail with permission denied error. Is there a solution?

    • @codersee
      @codersee  4 หลายเดือนก่อน

      Hmmm. And is the file named `pre-commit` ?
      Alternatively you can check if making #!/bin/sh instead of #!/bin/bash works for you

    • @sofrosyninc1741
      @sofrosyninc1741 2 หลายเดือนก่อน

      @@codersee chmod +x pre-commit from your script folders