2

Is there option to check that some kind (I'm interested in post-receive) hook is present in some remote repository?

Hauleth
  • 22,873
  • 4
  • 61
  • 112

1 Answers1

3

Not remotely from a client.
You need to:

  • either have some kind of access to the git upstream repo with said hook
  • or know that the hook is made to display some message that you can parse when you are pushing to the upstream repo.

Hooks are very much local to a repo and are not pushed/cloned around.
As such, they aren't visible from downstream repos.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250