File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -775,11 +775,12 @@ EOF
775775deploy_llm_d_infrastructure () {
776776 log_info " Deploying llm-d infrastructure..."
777777
778- # Clone llm-d repo if not exists or if has older version locally
778+ # Clone llm-d repo if not exists, or re-clone if version mismatch detected
779779 if [ -d " $LLM_D_PROJECT /.git" ]; then
780- CURRENT_TAG=$( cd " $LLM_D_PROJECT " && git describe --tags --exact-match 2> /dev/null || echo " unknown" )
781- if [ " $CURRENT_TAG " != " $LLM_D_RELEASE " ]; then
782- log_warning " $LLM_D_PROJECT exists but has version '$CURRENT_TAG ' (expected: $LLM_D_RELEASE )"
780+ # Check current version (try tag first, then branch)
781+ CURRENT_VERSION=$( cd " $LLM_D_PROJECT " && git describe --tags --exact-match 2> /dev/null || git rev-parse --abbrev-ref HEAD 2> /dev/null || echo " unknown" )
782+ if [ " $CURRENT_VERSION " != " $LLM_D_RELEASE " ]; then
783+ log_warning " $LLM_D_PROJECT exists but has version '$CURRENT_VERSION ' (expected: $LLM_D_RELEASE )"
783784 rm -rf " $LLM_D_PROJECT "
784785 else
785786 log_info " $LLM_D_PROJECT directory already exists with correct version ($LLM_D_RELEASE )"
You can’t perform that action at this time.
0 commit comments