Fossil SCM
For "fossil git export", add the comment line at the end of automatically generated "manifest" files so that they do not appear to be valid Fossil artifacts.
Commit
4ff45df4294c178cbb7c5556432427b9c5bc62b348b6984c9c98afb9a397871c
Parent
ebcce3ccddf2c40…
1 file changed
+1
+1
| --- src/export.c | ||
| +++ src/export.c | ||
| @@ -1272,10 +1272,11 @@ | ||
| 1272 | 1272 | |
| 1273 | 1273 | /* Include Fossil-generated auxiliary files in the check-in */ |
| 1274 | 1274 | if( fManifest & MFESTFLG_RAW ){ |
| 1275 | 1275 | Blob manifest; |
| 1276 | 1276 | content_get(rid, &manifest); |
| 1277 | + sterilize_manifest(&manifest, CFTYPE_MANIFEST); | |
| 1277 | 1278 | fprintf(xCmd,"M 100644 inline manifest\ndata %d\n%s\n", |
| 1278 | 1279 | blob_strlen(&manifest), blob_str(&manifest)); |
| 1279 | 1280 | blob_reset(&manifest); |
| 1280 | 1281 | } |
| 1281 | 1282 | if( fManifest & MFESTFLG_UUID ){ |
| 1282 | 1283 |
| --- src/export.c | |
| +++ src/export.c | |
| @@ -1272,10 +1272,11 @@ | |
| 1272 | |
| 1273 | /* Include Fossil-generated auxiliary files in the check-in */ |
| 1274 | if( fManifest & MFESTFLG_RAW ){ |
| 1275 | Blob manifest; |
| 1276 | content_get(rid, &manifest); |
| 1277 | fprintf(xCmd,"M 100644 inline manifest\ndata %d\n%s\n", |
| 1278 | blob_strlen(&manifest), blob_str(&manifest)); |
| 1279 | blob_reset(&manifest); |
| 1280 | } |
| 1281 | if( fManifest & MFESTFLG_UUID ){ |
| 1282 |
| --- src/export.c | |
| +++ src/export.c | |
| @@ -1272,10 +1272,11 @@ | |
| 1272 | |
| 1273 | /* Include Fossil-generated auxiliary files in the check-in */ |
| 1274 | if( fManifest & MFESTFLG_RAW ){ |
| 1275 | Blob manifest; |
| 1276 | content_get(rid, &manifest); |
| 1277 | sterilize_manifest(&manifest, CFTYPE_MANIFEST); |
| 1278 | fprintf(xCmd,"M 100644 inline manifest\ndata %d\n%s\n", |
| 1279 | blob_strlen(&manifest), blob_str(&manifest)); |
| 1280 | blob_reset(&manifest); |
| 1281 | } |
| 1282 | if( fManifest & MFESTFLG_UUID ){ |
| 1283 |