Skip to content

run-command: fix Unix PATH lookup

Jeff King git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2t5410: use longer path for sample scriptt/t5410-receive-pack-alternates.sh+1 -12 replies
2/2run-command: mark path lookup errors with ENOENTrun-command.c t/t0061-run-command.sh+28 -53 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] run-command: fix Unix PATH lookup

This series fixes a bug where run-command.c accidentally runs commands from the current directory when they are not found in the $PATH.

The second patch is the interesting one. The first one is just a necessary cleanup. Possibly this should be split into two topics: the second patch slated for maint, and then the first one as an independent fixup on tb/filter-alternate-refs (which is in master).

[1/2]: t5410: use longer path for sample script [2/2]: run-command: mark path lookup errors with ENOENT

 run-command.c                      | 20 ++++++++++++++++----
 t/t0061-run-command.sh             | 13 ++++++++++++-
 t/t5410-receive-pack-alternates.sh |  2 +-
 3 files changed, 29 insertions(+), 6 deletions(-)

-Peff