Skip to content

Commit 8f5f65d

Browse files
committed
Ask git where its daemon is and use that
This changes the test helpers on Windows to use "git --exec-path" (with whatever "git" GitPython is using) to find the directory that contains "git-daemon.exe", instead of finding it in a PATH search.
1 parent 91f63cd commit 8f5f65d

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

README.md

-3
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,6 @@ _Important_: Right after cloning this repository, please be sure to have
118118
executed `git fetch --tags` followed by the `./init-tests-after-clone.sh`
119119
script in the repository root. Otherwise you will encounter test failures.
120120

121-
On _Windows_, make sure you have `git-daemon` in your PATH. For MINGW-git, the `git-daemon.exe`
122-
exists in `Git\mingw64\libexec\git-core\`.
123-
124121
#### Install test dependencies
125122

126123
Ensure testing libraries are installed. This is taken care of already if you installed with:

test/lib/helper.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def git_daemon_launched(base_path, ip, port):
182182
# and then CANNOT DIE!
183183
# So, invoke it as a single command.
184184
daemon_cmd = [
185-
"git-daemon",
185+
osp.join(Git()._call_process("--exec-path"), "git-daemon"),
186186
"--enable=receive-pack",
187187
"--listen=%s" % ip,
188188
"--port=%s" % port,

0 commit comments

Comments
 (0)