mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
Merge pull request #8644 from overleaf/bg-archive-track-changes
archive track changes zip files in project when history migration fails GitOrigin-RevId: 67f2381b0a8f2fb1de82100752031c65808af885
This commit is contained in:
@@ -148,6 +148,20 @@ async function generateZip(projectId, zipfile) {
|
||||
Buffer.from(JSON.stringify(manifest, null, 2)),
|
||||
'manifest.json'
|
||||
)
|
||||
zipfile.addBuffer(
|
||||
Buffer.from(
|
||||
`History Migration Data
|
||||
|
||||
This zip file contains a copy of the raw history for this project.
|
||||
|
||||
If this file is present in a project it means the history could not
|
||||
be fully recovered or migrated.
|
||||
|
||||
A new history should have been created starting at the datestamp of
|
||||
this file.`
|
||||
),
|
||||
'README.txt'
|
||||
)
|
||||
zipfile.end()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user