Skip to content

Commit

Permalink
fix pa sha (#445)
Browse files Browse the repository at this point in the history
* Add check for pa sha passed in via yaml + docker

* Update cmake execute command to change working dir

* Remove changes to top level Cmakelists files
  • Loading branch information
debermudez committed Dec 12, 2023
1 parent 1890a34 commit 284e96b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/c++/perf_analyzer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,10 @@ add_subdirectory(client_backend)

find_package(Git REQUIRED)

execute_process(COMMAND
"${GIT_EXECUTABLE}" log -n 1 --abbrev-commit --format=format:%h
execute_process(WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
COMMAND "${GIT_EXECUTABLE}" log -n 1 --abbrev-commit --format=format:%h
RESULT_VARIABLE RETURN_CODE
OUTPUT_VARIABLE GIT_SHA)

if(NOT RETURN_CODE EQUAL "0")
set(GIT_SHA "unknown")
endif()
Expand Down

0 comments on commit 284e96b

Please sign in to comment.