litmusctl icon indicating copy to clipboard operation
litmusctl copied to clipboard

Pre-commit permission

Open shivam-Purohit opened this issue 11 months ago • 3 comments

git commit -s -m "create_probe:add api"

hint: The '.git/hooks/pre-commit' hook was ignored because it's not set as executable.

hint: You can disable this warning with `git config advice.ignoredHook false`.


might have to make changes in the commit in the recently add pre-commit hook script to give the necessary permission in the script itself.

shivam-Purohit avatar Mar 16 '24 11:03 shivam-Purohit

@shivam-Purohit I made some changes within the script image By adding chmod +x "$0" to the script, it now has the necessary permissions to run. This change ensures that the script will be executed before each commit Are these changes correct?

andoriyaprashant avatar May 28 '24 12:05 andoriyaprashant

@andoriyaprashant I think this should work. If you have tested this, you are welcomed to open a pr for the same. Thank you!

shivam-Purohit avatar May 29 '24 08:05 shivam-Purohit

@shivam-Purohit please review my pull request #239 Thank you

andoriyaprashant avatar May 29 '24 08:05 andoriyaprashant