Jonathan Nieder <jrnieder@xxxxxxxxx> writes: > This has been broken for a while, but better late than never to > address it. I am not sure if this is broken in the first place. We do want to make sure that the scripted porcelains will source the shell helper library from matching Git release. The proposed patch goes directly against that and I do not see how it could be an improvement. >> --- a/contrib/rerere-train.sh >> +++ b/contrib/rerere-train.sh >> @@ -7,7 +7,8 @@ USAGE="$me rev-list-args" >> >> SUBDIRECTORY_OK=Yes >> OPTIONS_SPEC= >> -. "$(git --exec-path)/git-sh-setup" >> +PATH="$(git --exec-path):$PATH" >> +. git-sh-setup > > This makes me similarly unhappy about PATH pollution, but it may be > that there's nothing to be done about that. To me, all the instances of the unhappiness in your review seem to be caused by the unjustified declaration that it is bad to source from the directory "gti --exec-path" reports. If a user wants to tweak things Git does, why should the user futz with his own copy of sh-setup and force scripted Porcelains to read from it, which would only affect the scripted Porcelains and have no chance of affecting compiled commands? Is building from the source so bad for an open source tool?