fix: fix: entrypoint-llama.sh should reset base repo to origin/main on startup (#336)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful

This commit is contained in:
Agent 2026-04-07 08:19:31 +00:00
parent 205e28c66f
commit dc4ed90b56

View file

@ -28,6 +28,13 @@ if [ ! -d "${PROJECT_REPO_ROOT}/.git" ]; then
log "Repo cloned"
fi
# Reset base repo to origin/main to avoid divergence warnings
cd "$PROJECT_REPO_ROOT"
git fetch origin main
git checkout main 2>/dev/null || true
git reset --hard origin/main
log "Base repo reset to origin/main"
log "Entering poll loop (interval: ${POLL_INTERVAL:-300}s)"
while true; do