File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -11,20 +11,6 @@ while ("${PADDLE_VERSION}" STREQUAL "")
1111 RESULT_VARIABLE GIT_RESULT
1212 ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE)
1313 if (NOT ${GIT_RESULT} )
14- # Get current branch name
15- execute_process (
16- COMMAND ${GIT_EXECUTABLE} rev-parse --abbrev-ref ${tmp_version}
17- WORKING_DIRECTORY ${PADDLE_SOURCE_DIR}
18- OUTPUT_VARIABLE GIT_BRANCH_NAME
19- RESULT_VARIABLE GIT_BRANCH_RESULT
20- ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE)
21- # If current branch is develop, then version will be latest
22- if (NOT ${GIT_BRANCH_RESULT} )
23- if (${GIT_BRANCH_NAME} MATCHES "develop" )
24- set (PADDLE_VERSION "latest" )
25- continue ()
26- endif ()
27- endif ()
2814 # Check the tag is a correct version
2915 if (${GIT_TAG_NAME} MATCHES "${COMMIT_VERSION_REGEX} " )
3016 # if no tag was found, set PADDLE_VERSION to latest
You can’t perform that action at this time.
0 commit comments