Unify HTTP handling in git-pull-hook