commit 336414eee6beb20c43830a6ae482e31977f609f3 from: Stefan Sperling via: Thomas Adam date: Wed Aug 23 18:54:35 2023 UTC portable: linux: use default git libexec Define a standard path to where git stores its libexec helpers. This is always going to be hit-and-miss hard-coded like this, but will suffice for now. Tested on ubuntu 22.04 commit - 7165924d2c70945b1071f478b1aab457773576e8 commit + 336414eee6beb20c43830a6ae482e31977f609f3 blob - 2b1255118b91d4c7edef0a6016130ed9de07bfcd blob + af3cf15215d61e94a762d704ddca0ecf37080994 --- gitwrapper/gitwrapper.c +++ gitwrapper/gitwrapper.c @@ -43,8 +43,12 @@ #include "log.h" #ifndef GITWRAPPER_GIT_LIBEXEC_DIR +#ifdef __linux__ +#define GITWRAPPER_GIT_LIBEXEC_DIR "/usr/lib/git-core/" +#else #define GITWRAPPER_GIT_LIBEXEC_DIR "/usr/local/libexec/git" #endif +#endif #ifndef GITWRAPPER_MY_SERVER_PROG #define GITWRAPPER_MY_SERVER_PROG "gotsh"