This is an automated email from the ASF dual-hosted git repository.
bneradt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new e699cbe702 Fix proxy-verifier path for non-worktree repositories
(#12699)
e699cbe702 is described below
commit e699cbe702279e7693f1c6bb2b10ddf6b84df744
Author: Brian Neradt <[email protected]>
AuthorDate: Mon Nov 24 12:51:11 2025 -0600
Fix proxy-verifier path for non-worktree repositories (#12699)
The git rev-parse --git-common-dir command added in #12686 returns an
absolute path to the relevant .git direcotry for worktrees.
Unfortunately, it does a relative path for "regular" non-worktree
clones. Without converting to an absolute path, PROXY_VERIFIER_PATH
becomes relative and fails to resolve correctly when passed to autest.
This adds get_filename_component to ensure GIT_COMMON_DIR is always
absolute, fixing the issue for both repository types.
---
cmake/proxy-verifier.cmake | 3 +++
1 file changed, 3 insertions(+)
diff --git a/cmake/proxy-verifier.cmake b/cmake/proxy-verifier.cmake
index 7e91d636d8..4febf2d98a 100644
--- a/cmake/proxy-verifier.cmake
+++ b/cmake/proxy-verifier.cmake
@@ -47,6 +47,9 @@ if(NOT GIT_RESULT EQUAL 0)
message(FATAL_ERROR "Failed to determine git common directory")
endif()
+# Convert to absolute path (handles relative .git from regular non-worktree
clones).
+get_filename_component(GIT_COMMON_DIR "${GIT_COMMON_DIR}" ABSOLUTE BASE_DIR
"${CMAKE_SOURCE_DIR}")
+
# Download proxy-verifier to git common directory.
set(PV_ARCHIVE ${GIT_COMMON_DIR}/proxy-verifier/proxy-verifier.tar.gz)
file(