diff --git a/doc/bugs/Q__58___is_there_a_reason_to___34__sense__34___git_annex_post-receive_in_a_hook__63__.mdwn b/doc/bugs/Q__58___is_there_a_reason_to___34__sense__34___git_annex_post-receive_in_a_hook__63__.mdwn new file mode 100644 index 0000000000..dd021a9828 --- /dev/null +++ b/doc/bugs/Q__58___is_there_a_reason_to___34__sense__34___git_annex_post-receive_in_a_hook__63__.mdwn @@ -0,0 +1,13 @@ +I looked into post-receive hook of an arbitrary git/git-annex repo to find + +[[!format sh """ +(git-annex)hopa:/tmp/testds/.git/hooks[master] +$> cat post-receive +#!/bin/sh +# automatically configured by git-annex +if git annex post-receive --help >/dev/null 2>&1; then git annex post-receive; fi +"""]] + +and wondered why it actually needs conditioning? `--help` runs for me longer (40-50ms) than actual `git annex post-receive` call (20ms) when there is nothing todo. So I wondered why wasting time on `--help`? + +[[!meta author=yoh]]