The idea is to simplify the RUNTIME_PREFIX code, and to make Git handle the case where the binary was found in $ROOT/git/, too. Changes since v1: - changed the signature of strip_path_suffix() as suggested by Hannes: char *strip_path_suffix(const char *path, const char *suffix) - added a test to test-path-utils Johannes Schindelin (2): Introduce the function strip_path_suffix() system_path(): simplify using strip_path_suffix(), and add suffix "git" cache.h | 1 + exec_cmd.c | 33 ++++----------------------------- path.c | 32 ++++++++++++++++++++++++++++++++ t/t0060-path-utils.sh | 4 ++++ test-path-utils.c | 6 ++++++ 5 files changed, 47 insertions(+), 29 deletions(-) -- 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