Skip to content

Commit

Permalink
update regex pattern in CMakeLists.txt to remove the gpg credentails …
Browse files Browse the repository at this point in the history
…in the metadata (#2510)

Signed-off-by: Joel Polizzi <[email protected]>
  • Loading branch information
quic-jpolizzi authored Oct 17, 2023
1 parent 1f636cf commit f84a813
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -293,11 +293,12 @@ endif(NOT DEFINED AIMET_PACKAGE_PATH)

execute_process(COMMAND git config --get remote.origin.url WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} OUTPUT_VARIABLE remote_url)
if(NOT remote_url STREQUAL "")
message(STATUS "Repo Remote URL = ${remote_url}")
string(REGEX REPLACE "\n$" "" remote_url "${remote_url}")
# Remove the ".git" suffix from the remote repo URL
string(REGEX REPLACE "\\.[^.]*$" "" remote_url ${remote_url})

string(REGEX REPLACE ".*@" "" remote_post ${remote_url})
set(remote_url "https://${remote_post}")
message(STATUS "Repo Remote URL = ${remote_url}")
set(remote_url_cfg "\"${remote_url}\"")
set(sw_version_cfg "\"${SW_VERSION}\"")

Expand Down

0 comments on commit f84a813

Please sign in to comment.