Remember and use GIT_EXEC_PATH on exec()'s
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 21 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | Remember and use GIT_EXEC_PATH on exec()'sMakefile cache.h environment.c | +37 | 1 reply | |
| 2/2 | Remember and use GIT_EXEC_PATH on exec()'sdaemon.c fetch-clone.c run-command.c +2 more | +10 | 29 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] Remember and use GIT_EXEC_PATH on exec()'s
I've been trying to setup a git repository for access via ssh, on a system where git is to be installed under ~user/bin, and ~user/bin is not included in the PATH that sshd provides.
Consequently I need to execute something like:
git-clone -u /home/user/bin/git-upload-pack \
ssh://user@system/home/user/repo.git repo
When git-upload-pack executes on the remote system, it tries to execute git-rev-list and fails, since /home/user/bin is not in the path.
The following patches handle this issue by appending GIT_EXEC_PATH to PATH prior to exec calls (via git_setup_exec_path()). Also, the value of ${bindir} at build time is encoded and used as a default value for "GIT_EXEC_PATH", if the latter is not present.
Signature · 1 line
Michal Ostrowski <[email protected]>