2.6 KiB
GitHub Sync Attempt - Blocker Report
Task
Sync GitHub main to match forgejo/main (84 commits behind)
Current State
- Forgejo/main:
02bfffefdocs(bf-1o0la): document Forgejo push mirror configuration and status - GitHub/main:
88b4f0dafix(pdftract-2rc4): fix CI schema gate script and add verification note - Commits behind: 160 (updated from initial 84 estimate)
Blocker: Large File in Git History
GitHub rejected the push due to large file(s) in git history:
remote: warning: File test_parse_simple is 60.74 MB; this is larger than GitHub's recommended maximum file size of 50.00 MB
remote: error: File --1.ppm is 235.13 MB; this exceeds GitHub's file size limit of 100.00 MB
remote: error: GH001: Large files detected.
Problem Details
-
Large file:
--1.ppm(235.13 MB PPM image file)- Added in:
1c6f26ecfix(bf-4mkhv): clean up unused imports in hash.rs - Removed in:
007439e7chore(bf-8031): remove tracked debug/scratch artifacts and compiled binaries - Both commits are in the sync range
- Added in:
-
GitHub's behavior: GitHub checks all objects being pushed, even if the large file was later removed from the working tree. The file still exists in the git object database.
-
Result: Pre-receive hook declined - sync cannot complete
Acceptance Criteria Status
- FAIL: GitHub main commit SHA does not equal forgejo/main (blocker: large file)
- PASS: No commits exist on GitHub main that are not on forgejo main
- PASS: Merge strategy was used (attempted fast-forward merge)
- WARN: Automatic sync triggered by Forgejo mirror did not resolve this
Resolution Options
Option 1: Git LFS (Recommended)
Set up Git LFS for large files:
git lfs install
git lfs track "*.ppm" "*.pdf" "*.bin"
git add .gitattributes
git commit -m "chore: enable git-lfs for large files"
Option 2: History Rewrite (Not Recommended)
Use git filter-branch or BFG to remove large file from history:
git filter-branch --force --index-filter \
"git rm --cached --ignore-unmatch --1.ppm" \
--prune-empty --tag-name-filter cat -- --all
This would diverge forgejo/main from GitHub main.
Option 3: Manual Intervention
Manually exclude the problematic commit from sync and re-implement the change without the large file.
Recommendation
Setup Git LFS on both repositories (Forgejo and GitHub) before re-attempting sync. The large file --1.ppm was a temporary scratch file that should have been handled by git-lfs from the start.
Status
BLOCKED - Requires git-lfs setup or history cleanup before sync can proceed.