Fossil SCM

Fix a bug in git-export in which the \n at the end of manifest.uuid is omitted.

drh 2024-06-19 18:26 trunk
Commit fc8d476aca7c3c7994283a0187932f71ad3eed69ce62067e45621f7537b36c51
1 file changed +1 -1
+1 -1
--- src/export.c
+++ src/export.c
@@ -1279,11 +1279,11 @@
12791279
blob_strlen(&manifest), blob_str(&manifest));
12801280
blob_reset(&manifest);
12811281
}
12821282
if( fManifest & MFESTFLG_UUID ){
12831283
int n = (int)strlen(zUuid);
1284
- fprintf(xCmd,"M 100644 inline manifest.uuid\ndata %d\n%s\n", n, zUuid);
1284
+ fprintf(xCmd,"M 100644 inline manifest.uuid\ndata %d\n%s\n\n", n+1, zUuid);
12851285
}
12861286
if( fManifest & MFESTFLG_TAGS ){
12871287
Blob tagslist;
12881288
blob_init(&tagslist, 0, 0);
12891289
get_checkin_taglist(rid, &tagslist);
12901290
--- src/export.c
+++ src/export.c
@@ -1279,11 +1279,11 @@
1279 blob_strlen(&manifest), blob_str(&manifest));
1280 blob_reset(&manifest);
1281 }
1282 if( fManifest & MFESTFLG_UUID ){
1283 int n = (int)strlen(zUuid);
1284 fprintf(xCmd,"M 100644 inline manifest.uuid\ndata %d\n%s\n", n, zUuid);
1285 }
1286 if( fManifest & MFESTFLG_TAGS ){
1287 Blob tagslist;
1288 blob_init(&tagslist, 0, 0);
1289 get_checkin_taglist(rid, &tagslist);
1290
--- src/export.c
+++ src/export.c
@@ -1279,11 +1279,11 @@
1279 blob_strlen(&manifest), blob_str(&manifest));
1280 blob_reset(&manifest);
1281 }
1282 if( fManifest & MFESTFLG_UUID ){
1283 int n = (int)strlen(zUuid);
1284 fprintf(xCmd,"M 100644 inline manifest.uuid\ndata %d\n%s\n\n", n+1, zUuid);
1285 }
1286 if( fManifest & MFESTFLG_TAGS ){
1287 Blob tagslist;
1288 blob_init(&tagslist, 0, 0);
1289 get_checkin_taglist(rid, &tagslist);
1290

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button