Skip to content

fix(translation-sync): replace git rm with rm in cleanup step#63

Merged
mmattel merged 1 commit into
mainfrom
fix/translation-cleanup-git-rm
May 8, 2026
Merged

fix(translation-sync): replace git rm with rm in cleanup step#63
mmattel merged 1 commit into
mainfrom
fix/translation-cleanup-git-rm

Conversation

@DeepDiver1975
Copy link
Copy Markdown
Member

@DeepDiver1975 DeepDiver1975 commented May 8, 2026

Summary

  • The "Translation cleanup (old)" step calls git rm -f to remove unsupported locale files (or_IN, uz, yo, ne)
  • This fails with fatal: detected dubious ownership in repository (exit 123) because the job runs inside the owncloudci/transifex container where the workspace UID differs from the container process UID — git's safe.directory protection kicks in for all steps after checkout
  • Plain rm -f is correct here: peter-evans/create-pull-request already stages all filesystem changes (including tracked file deletions) before creating the PR commit, so the git layer was never needed

Test plan

  • Trigger translation-sync workflow on a repo using mode: old and confirm the cleanup step no longer fails with exit 123
  • Verify the resulting PR still removes any or_IN.*, uz.*, yo.*, ne.* files that were previously tracked

🤖 Generated with Claude Code

git rm requires a valid git safe.directory context which is not available
inside the container for subsequent steps after checkout. The files being
removed are unsupported locales; plain rm is sufficient since
peter-evans/create-pull-request handles staging all filesystem changes.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Thomas Müller <1005065+DeepDiver1975@users.noreply.github.com>
@DeepDiver1975
Copy link
Copy Markdown
Member Author

@mmattel mmattel merged commit 5de7d37 into main May 8, 2026
21 checks passed
@mmattel mmattel deleted the fix/translation-cleanup-git-rm branch May 8, 2026 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants