]> git.kaiwu.me - haproxy.git/commit
BUILD: makefile: better support git worktrees
authorWilly Tarreau <w@1wt.eu>
Fri, 16 Oct 2026 18:27:51 +0000 (20:27 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 16 Oct 2026 19:24:41 +0000 (21:24 +0200)
commita383051731cfa80f0196bdecc4c6a2ab7c1ea234
treebce64ec23ece0ef72c9ba85e78532218d2c70851
parent50d20c9b8992ae25d37a381a7f5e8b643504b1f9
BUILD: makefile: better support git worktrees

Git worktrees replace the .git directory with a file which contains the
location to the git directory. The version generation test is based on
the detection of .git/. as a directory, and thus fails inside a worktree.
Let's relax the test to only see if .git exists.
Makefile