litmusctl
litmusctl copied to clipboard
Pre-commit permission
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 I made some changes within the script
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 I think this should work. If you have tested this, you are welcomed to open a pr for the same. Thank you!
@shivam-Purohit please review my pull request #239 Thank you