fsmonitor: prefer repo_git_path() to git_pathdup()
commit00df20a7ab4a4de355f69157acfd2502ab58a3aa
authorJeff King <peff@peff.net>
Mon, 18 Sep 2023 22:29:40 +0000 (18 18:29 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 18 Sep 2023 22:56:14 +0000 (18 15:56 -0700)
treed3305695ef06b9061574e53d0bf79d8e22e29e69
parent43c8a30d150ecede9709c1f2527c8fba92c65f40
fsmonitor: prefer repo_git_path() to git_pathdup()

The fsmonitor_ipc__get_path() function ignores its repository argument.
It should use it when constructing repo paths (though in practice, it is
unlikely anything but the_repository is ever passed, so this is cleanup
and future proofing, not a bug fix).

Note that despite the lack of "dup" in the name, repo_git_path() behaves
like git_pathdup() and returns an allocated string.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/fsmonitor/fsm-ipc-win32.c