Skip to content

revert: Changes to git cleanup in edxapp#321

Merged
timmc-edx merged 1 commit intomasterfrom
timmc/rv-git-clean
Feb 18, 2026
Merged

revert: Changes to git cleanup in edxapp#321
timmc-edx merged 1 commit intomasterfrom
timmc/rv-git-clean

Conversation

@timmc-edx
Copy link
Member

This reverts commits 270a106/PR #318, ba8d06d/PR #319, and 133403d/PR #320 which attempted to change to running git-clean as root.

For some reason, git is still saying the directory is unsafe and recommends setting safe.directory even though we already are. Just giving up for now. We may need some other approach, such as running chown -R on the repo before cleaning or ensuring these files are created with the right ownership in the first place.


Make sure that the following steps are done before merging:

  • Have a Site Reliability Engineer review the PR if you don't own all of the services impacted.
  • If you are adding any new default values that need to be overridden when this change goes live, update internal repos and add an entry to the top of the CHANGELOG.
  • Performed the appropriate testing.

This reverts commits 270a106/PR #318, ba8d06d/PR #319, and
133403d/PR #320 which attempted to change to running git-clean as root.

For some reason, git is still saying the directory is unsafe and recommends
setting `safe.directory` even though we already are. Just giving up for
now. We may need some other approach, such as running `chown -R` on the
repo before cleaning or ensuring these files are created with the right
ownership in the first place.
@timmc-edx timmc-edx merged commit b2acfc9 into master Feb 18, 2026
1 of 3 checks passed
@timmc-edx timmc-edx deleted the timmc/rv-git-clean branch February 18, 2026 12:08
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