Skip to contentSkip to conversation

hooks/post-update execs git-update-server-info

DISCUSSION Sitaram Chamarty 2 participants 3 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

shouldn't .git/hooks/post-update contain "exec git update-server-info" (note the space not hyphen) instead of "exec git-update-server-info"?

Either I am horribly confused or HTTP pulls have not been working on post 1.6 gits and no one has noticed till now :-)

#1 lore raw
Quoted 6 lines · Sitaram Chamarty

shouldn't .git/hooks/post-update contain "exec git update-server-info" (note the space not hyphen) instead of "exec git-update-server-info"?

Either I am horribly confused or HTTP pulls have not been working on post 1.6 gits and no one has noticed till now :-)

If I understand correctly hooks run with GIT_EXEC_PATH prepended to PATH, so everything should work; and it has to work to not force users to upgrade their (perhaps customized) hooks after upgrading git.

Signature · 3 lines
Jakub Narebski
Poland
ShadeHawk on #git
#2 lore raw
Quoted 7 lines · Jakub Narebski
Quoted 2 lines · Sitaram Chamarty

shouldn't .git/hooks/post-update contain "exec git update-server-info" (note the space not hyphen) instead of

If I understand correctly hooks run with GIT_EXEC_PATH prepended to PATH, so everything should work; and it has to work to not force users

you're right -- it does. There was something else wrong in my quick-and-dirty testing that caused me to jump to the wrong conclusion; sorry for the noise!