Fossil SCM

Fix the "fossil patch pull" command so that it works even if the remote has added two or more files.

drh 2021-08-19 19:01 trunk
Commit 08be0c75b9be066145efce159d4ea242a9b289d0326ddfcd988a292a5c5584f9
1 file changed +1 -1
+1 -1
--- src/patch.c
+++ src/patch.c
@@ -562,11 +562,11 @@
562562
db_finalize(&q);
563563
if( blob_size(&cmd)>0 ){
564564
if( mFlags & PATCH_DRYRUN ){
565565
fossil_print("%s", blob_str(&cmd));
566566
}else{
567
- int rc = fossil_system(blob_str(&cmd));
567
+ int rc = fossil_unsafe_system(blob_str(&cmd));
568568
if( rc ){
569569
fossil_fatal("unable to add new files:\n%s",
570570
blob_str(&cmd));
571571
}
572572
}
573573
--- 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

Keyboard Shortcuts

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