Re: Git fails to detect subcommand when hook is symlinked to a builtin

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Todd Zullinger <tmz@xxxxxxxxx> writes:

>> I suspect the recent change to run hooks via run_command() interface
>> has something to do with it.  From what version did you update to
>> 1.7.4.1?
>
> I should have mentioned it, but I failed to do so.  Sorry about that.
>
> This was moving from 1.5.5.6 to 1.7.4.1.

Ok, that explains it.  update-server-info wasn't a built-in, so didn't
have to look at its name to decide what to do.  It didn't have to spawn
other git commands from GIT_EXEC_PATH so running the command directly
without setting the environment variable happened to work.

But such a usage (this doesn't have anything to do with the symlinking)
was deprecated way before 1.5.4 [*1*], so the answer is still "don't do
that" ;-)

Thanks for a clarification.


[Reference]

*1* http://thread.gmane.org/gmane.comp.version-control.git/93511
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]