commit 5033341e896cb4e7b6f7358e89d9348ba577e823 from: Stefan Sperling via: Thomas Adam date: Tue Aug 29 16:31:10 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 - d358e4e42e10437d6f6b3c297497ffe1af072031 commit + 5033341e896cb4e7b6f7358e89d9348ba577e823 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"