]> git.ipfire.org Git - thirdparty/git.git/commit
exec_cmd: RUNTIME_PREFIX on z/OS systems
authorD Harithamma <harithamma.d@ibm.com>
Thu, 22 Aug 2024 13:52:12 +0000 (13:52 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 22 Aug 2024 15:58:46 +0000 (08:58 -0700)
commit987bbcd088fc6274e21b4fac36e58a66c4ded460
treee5b2c9d10469bf2986c69cdb94ac7b740a432a09
parent3a7362eb9fad0c4838f5cfaa95ed3c51a4c18d93
exec_cmd: RUNTIME_PREFIX on z/OS systems

Enable Git to resolve its own binary location using __getprogramdir
and getprogname.

Since /proc is not a mandatory filesystem on z/OS, we cannot rely on the
git_get_exec_path_procfs method to determine Git's executable path. To
address this, we have implemented git_get_exec_path_zos, which resolves
the executable path by extracting it from the current program's
directory and filename.

Signed-off-by: D Harithamma <harithamma.d@ibm.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
config.mak.uname
exec-cmd.c