Fossil SCM
Fix an issue with the logic that prevents Fossil control artifacts from being imported as regular files. Probably unrelated to the breezy changes. Came up during testing.
Commit
92ab2474355296c0049f64fe84e7f1f207a9a00d491ed0be25469ff00c1c9a91
Parent
ddcd35d6a525943…
1 file changed
+1
-1
+1
-1
| --- src/import.c | ||
| +++ src/import.c | ||
| @@ -210,11 +210,11 @@ | ||
| 210 | 210 | ** artifact. Then add the file to the repository. |
| 211 | 211 | */ |
| 212 | 212 | static void check_and_add_file(const char *zMark, ImportFile *pFile){ |
| 213 | 213 | Blob content; |
| 214 | 214 | blob_init(&content, gg.aData, gg.nData); |
| 215 | - if( manifest_is_well_formed(gg.aData, gg.nData) ){ | |
| 215 | + if( gg.nData && manifest_is_well_formed(gg.aData, gg.nData) ){ | |
| 216 | 216 | sterilize_manifest(&content, -1); |
| 217 | 217 | } |
| 218 | 218 | fast_insert_content(&content, zMark, pFile, 0, 0); |
| 219 | 219 | blob_reset(&content); |
| 220 | 220 | } |
| 221 | 221 |
| --- src/import.c | |
| +++ src/import.c | |
| @@ -210,11 +210,11 @@ | |
| 210 | ** artifact. Then add the file to the repository. |
| 211 | */ |
| 212 | static void check_and_add_file(const char *zMark, ImportFile *pFile){ |
| 213 | Blob content; |
| 214 | blob_init(&content, gg.aData, gg.nData); |
| 215 | if( manifest_is_well_formed(gg.aData, gg.nData) ){ |
| 216 | sterilize_manifest(&content, -1); |
| 217 | } |
| 218 | fast_insert_content(&content, zMark, pFile, 0, 0); |
| 219 | blob_reset(&content); |
| 220 | } |
| 221 |
| --- src/import.c | |
| +++ src/import.c | |
| @@ -210,11 +210,11 @@ | |
| 210 | ** artifact. Then add the file to the repository. |
| 211 | */ |
| 212 | static void check_and_add_file(const char *zMark, ImportFile *pFile){ |
| 213 | Blob content; |
| 214 | blob_init(&content, gg.aData, gg.nData); |
| 215 | if( gg.nData && manifest_is_well_formed(gg.aData, gg.nData) ){ |
| 216 | sterilize_manifest(&content, -1); |
| 217 | } |
| 218 | fast_insert_content(&content, zMark, pFile, 0, 0); |
| 219 | blob_reset(&content); |
| 220 | } |
| 221 |