mirror of
https://github.com/git-for-windows/git.git
synced 2026-03-19 21:10:38 -05:00
Originally, we refrained from adding a regression test in7b6c649637(system_path(): Add prefix computation at runtime if RUNTIME_PREFIX set, 2008-08-10), and in226c0ddd0d(exec_cmd: RUNTIME_PREFIX on some POSIX systems, 2018-04-10). The reason was that it was deemed too tricky to test. Turns out that it is not tricky to test at all: we simply create a pseudo-root, copy the `git` executable into the `git/` subdirectory of that pseudo-root, then copy a script into the `libexec/git-core/` directory and expect that to be picked up. As long as the trash directory is in a location where binaries can be executed, this works. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
102 KiB
102 KiB