1

Can I use git hook to determine the version of the client/agent pushing?

I want to deny a push and send a message when the user/client is too old (or too new).

ddesjard
  • 11
  • 1

1 Answers1

1

Not on the server side, as that information (git version) isn't part of what is being pushed.

You could ask the client to have a pre-push hook with your test in it, but there is no guarantee that this hook would be deployed (or bypassed by the user).

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