当前位置: 动力学知识库 > 问答 > 编程问答 >

githooks - Apache Zeppelin not executing git hooks (sometimes)

问题描述:

When using the build-in commit interface, it seems pre-commit is executed sometimes, post-commit never. I assume the configuration is ok as pre-commit gets executed (sometimes).

pre-commit:

#!/bin/sh

touch /tmp/git_heartbeat

echo "pre-commit" >> /tmp/git_heartbeat

post-commit:

#!/bin/sh

touch /tmp/git_heartbeat

echo "post-commit" >> /tmp/git_heartbeat

git push origin master

echo "post-commit done" >> /tmp/git_heartbeat

The hooks have correct permissions and executing commit from the console fires both hooks.

Any ideas?

分享给朋友:
您可能感兴趣的文章:
随机阅读: