-
Notifications
You must be signed in to change notification settings - Fork 238
refresh src in build #3979
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
refresh src in build #3979
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -248,6 +248,7 @@ git checkout %OV_SOURCE_BRANCH% | |||||||||||||
| if !errorlevel! neq 0 exit /b !errorlevel! | ||||||||||||||
| git submodule update --init --recursive | ||||||||||||||
| if !errorlevel! neq 0 exit /b !errorlevel! | ||||||||||||||
| git pull --recurse-submodules | ||||||||||||||
| IF /I NOT EXIST build ( | ||||||||||||||
| mkdir build | ||||||||||||||
| ) | ||||||||||||||
|
|
@@ -271,6 +272,7 @@ cd %BAZEL_SHORT_PATH%\openvino_tokenizers_src | |||||||||||||
| git fetch origin | ||||||||||||||
| git checkout %TOKENIZER_SOURCE_BRANCH% | ||||||||||||||
| if !errorlevel! neq 0 exit /b !errorlevel! | ||||||||||||||
| git pull --recurse-submodules | ||||||||||||||
|
||||||||||||||
| git pull --recurse-submodules | |
| for /f "delims=" %%h in ('git rev-parse --abbrev-ref HEAD') do set "GIT_BRANCH=%%h" | |
| IF /I NOT "!GIT_BRANCH!"=="HEAD" ( | |
| git pull --recurse-submodules | |
| if !errorlevel! neq 0 exit /b !errorlevel! | |
| ) |
Copilot
AI
Feb 17, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GENAI_SOURCE_BRANCH defaults to a commit SHA, which puts the repo in detached HEAD; git pull will fail in that state and the script does not check errorlevel afterwards. Recommend removing this pull (fetch+checkout already refreshes) or performing a deterministic update (e.g., fetch then reset/checkout the requested ref) with proper error handling.
| git pull --recurse-submodules |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OV_SOURCE_BRANCHdefaults to a specific commit SHA (detached HEAD). Runninggit pullin detached HEAD will fail ("You are not currently on a branch") and is also ignored here (noerrorlevelcheck). Consider removing this pull, or only pulling when%OV_SOURCE_BRANCH%is an actual branch name; for pinned SHAs,git fetch+git checkoutis sufficient and keeps builds reproducible.