fix: pre-release.yml updates.xml sync checks out entire branch tree #177

Closed
opened 2026-05-26 21:16:15 +00:00 by jmiller · 1 comment
Owner

Problem

pre-release.yml "Sync updates.xml to all branches" step (line 279) runs:

git checkout "origin/BRANCH" -- .

This checks out ALL files from the target branch, not just updates.xml. Can corrupt working tree.

Solution

Change to:

git checkout "origin/BRANCH" -- updates.xml

Or use Gitea Contents API to update the file directly.

Files

  • .mokogitea/workflows/pre-release.yml
## Problem pre-release.yml "Sync updates.xml to all branches" step (line 279) runs: ```bash git checkout "origin/BRANCH" -- . ``` This checks out ALL files from the target branch, not just updates.xml. Can corrupt working tree. ## Solution Change to: ```bash git checkout "origin/BRANCH" -- updates.xml ``` Or use Gitea Contents API to update the file directly. ## Files - .mokogitea/workflows/pre-release.yml
jmiller added the ci-cdbuild labels 2026-05-26 21:16:15 +00:00
Author
Owner

Branch created: feature/177-fix-pre-release-yml-updates-xml-sync-che

git fetch origin
git checkout feature/177-fix-pre-release-yml-updates-xml-sync-che
Branch created: [`feature/177-fix-pre-release-yml-updates-xml-sync-che`](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/src/branch/feature/177-fix-pre-release-yml-updates-xml-sync-che) ```bash git fetch origin git checkout feature/177-fix-pre-release-yml-updates-xml-sync-che ```
Sign in to join this conversation.
No labels build ci-cd
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/moko-platform#177