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
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
This commit is contained in:
parent
bba7665e09
commit
f499de7c9d
1 changed files with 2 additions and 2 deletions
|
|
@ -30,11 +30,11 @@ fi
|
||||||
|
|
||||||
# Reset base repo to origin/main to avoid divergence warnings
|
# Reset base repo to origin/main to avoid divergence warnings
|
||||||
su -s /bin/bash agent -c "
|
su -s /bin/bash agent -c "
|
||||||
cd '/home/agent/repos/disinto'
|
cd \"${PROJECT_REPO_ROOT}\"
|
||||||
git fetch origin main
|
git fetch origin main
|
||||||
git checkout main 2>/dev/null || true
|
git checkout main 2>/dev/null || true
|
||||||
git reset --hard origin/main
|
git reset --hard origin/main
|
||||||
"
|
" || true
|
||||||
log "Base repo reset to origin/main"
|
log "Base repo reset to origin/main"
|
||||||
|
|
||||||
log "Entering poll loop (interval: ${POLL_INTERVAL:-300}s)"
|
log "Entering poll loop (interval: ${POLL_INTERVAL:-300}s)"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue