Fossil SCM
Fix the "fossil patch pull" command so that it works even if the remote has added two or more files.
Commit
08be0c75b9be066145efce159d4ea242a9b289d0326ddfcd988a292a5c5584f9
Parent
6b608a0ccbe3c53…
1 file changed
+1
-1
+1
-1
| --- src/patch.c | ||
| +++ src/patch.c | ||
| @@ -562,11 +562,11 @@ | ||
| 562 | 562 | db_finalize(&q); |
| 563 | 563 | if( blob_size(&cmd)>0 ){ |
| 564 | 564 | if( mFlags & PATCH_DRYRUN ){ |
| 565 | 565 | fossil_print("%s", blob_str(&cmd)); |
| 566 | 566 | }else{ |
| 567 | - int rc = fossil_system(blob_str(&cmd)); | |
| 567 | + int rc = fossil_unsafe_system(blob_str(&cmd)); | |
| 568 | 568 | if( rc ){ |
| 569 | 569 | fossil_fatal("unable to add new files:\n%s", |
| 570 | 570 | blob_str(&cmd)); |
| 571 | 571 | } |
| 572 | 572 | } |
| 573 | 573 |
| --- src/patch.c | |
| +++ src/patch.c | |
| @@ -562,11 +562,11 @@ | |
| 562 | db_finalize(&q); |
| 563 | if( blob_size(&cmd)>0 ){ |
| 564 | if( mFlags & PATCH_DRYRUN ){ |
| 565 | fossil_print("%s", blob_str(&cmd)); |
| 566 | }else{ |
| 567 | int rc = fossil_system(blob_str(&cmd)); |
| 568 | if( rc ){ |
| 569 | fossil_fatal("unable to add new files:\n%s", |
| 570 | blob_str(&cmd)); |
| 571 | } |
| 572 | } |
| 573 |
| --- src/patch.c | |
| +++ src/patch.c | |
| @@ -562,11 +562,11 @@ | |
| 562 | db_finalize(&q); |
| 563 | if( blob_size(&cmd)>0 ){ |
| 564 | if( mFlags & PATCH_DRYRUN ){ |
| 565 | fossil_print("%s", blob_str(&cmd)); |
| 566 | }else{ |
| 567 | int rc = fossil_unsafe_system(blob_str(&cmd)); |
| 568 | if( rc ){ |
| 569 | fossil_fatal("unable to add new files:\n%s", |
| 570 | blob_str(&cmd)); |
| 571 | } |
| 572 | } |
| 573 |