Include an explicit assignment to the PATH environment variable in the hook templates. * subversion/libsvn_repos/repos.c (create_hooks): In each of the hook templates, include an explicit assignment of the PATH environment variable to SVN_BINARY_DIR, /bin, and /usr/bin directories. Index: subversion/libsvn_repos/repos.c =================================================================== --- subversion/libsvn_repos/repos.c (revision 11629) +++ subversion/libsvn_repos/repos.c (working copy) @@ -313,6 +313,9 @@ "# Here is an example hook script, for a Unix /bin/sh interpreter:" APR_EOL_STR APR_EOL_STR + "export PATH; PATH=" SVN_BINARY_DIR ":/bin:/usr/bin" + APR_EOL_STR + APR_EOL_STR "REPOS=\"$1\"" APR_EOL_STR "USER=\"$2\"" @@ -433,6 +436,9 @@ "# Here is an example hook script, for a Unix /bin/sh interpreter:" APR_EOL_STR APR_EOL_STR + "export PATH; PATH=" SVN_BINARY_DIR ":/bin:/usr/bin" + APR_EOL_STR + APR_EOL_STR "REPOS=\"$1\"" APR_EOL_STR "TXN=\"$2\"" @@ -562,6 +568,9 @@ "# Here is an example hook script, for a Unix /bin/sh interpreter:" APR_EOL_STR APR_EOL_STR + "export PATH; PATH=" SVN_BINARY_DIR ":/bin:/usr/bin" + APR_EOL_STR + APR_EOL_STR "REPOS=\"$1\"" APR_EOL_STR "REV=\"$2\"" @@ -665,6 +674,9 @@ "# Here is an example hook script, for a Unix /bin/sh interpreter:" APR_EOL_STR APR_EOL_STR + "export PATH; PATH=" SVN_BINARY_DIR ":/bin:/usr/bin" + APR_EOL_STR + APR_EOL_STR "REPOS=\"$1\"" APR_EOL_STR "REV=\"$2\"" @@ -761,6 +773,9 @@ "# Here is an example hook script, for a Unix /bin/sh interpreter:" APR_EOL_STR APR_EOL_STR + "export PATH; PATH=" SVN_BINARY_DIR ":/bin:/usr/bin" + APR_EOL_STR + APR_EOL_STR "REPOS=\"$1\"" APR_EOL_STR "REV=\"$2\""