Fossil SCM

Always print the SSH command used to implement "fossil patch push/pull". No longer require the -v option to see the ssh command. This is in the interest of full disclosure - letting the operator know what Fossi is doing behind the scenes.

drh 2023-06-18 00:46 trunk
Commit 97ec767f4b3de68c840603332962c7b3cf777f7b6fa1e9873e4de576cc017b0b
1 file changed +2 -4
+2 -4
--- src/patch.c
+++ src/patch.c
@@ -700,14 +700,12 @@
700700
blob_appendf(&remote, "%$ patch %s%s --dir64 %z -",
701701
zFossilCmd, zRemoteCmd, zForce, encode64(zDir, -1));
702702
blob_append_escaped_arg(&cmd, blob_str(&remote), 0);
703703
blob_reset(&remote);
704704
}
705
- if( mFlags & PATCH_VERBOSE ){
706
- fossil_print("# %s\n", blob_str(&cmd));
707
- fflush(stdout);
708
- }
705
+ fossil_print("%s\n", blob_str(&cmd));
706
+ fflush(stdout);
709707
f = popen(blob_str(&cmd), zRW);
710708
if( f==0 ){
711709
fossil_fatal("cannot run command: %s", blob_str(&cmd));
712710
}
713711
blob_reset(&cmd);
714712
--- src/patch.c
+++ src/patch.c
@@ -700,14 +700,12 @@
700 blob_appendf(&remote, "%$ patch %s%s --dir64 %z -",
701 zFossilCmd, zRemoteCmd, zForce, encode64(zDir, -1));
702 blob_append_escaped_arg(&cmd, blob_str(&remote), 0);
703 blob_reset(&remote);
704 }
705 if( mFlags & PATCH_VERBOSE ){
706 fossil_print("# %s\n", blob_str(&cmd));
707 fflush(stdout);
708 }
709 f = popen(blob_str(&cmd), zRW);
710 if( f==0 ){
711 fossil_fatal("cannot run command: %s", blob_str(&cmd));
712 }
713 blob_reset(&cmd);
714
--- src/patch.c
+++ src/patch.c
@@ -700,14 +700,12 @@
700 blob_appendf(&remote, "%$ patch %s%s --dir64 %z -",
701 zFossilCmd, zRemoteCmd, zForce, encode64(zDir, -1));
702 blob_append_escaped_arg(&cmd, blob_str(&remote), 0);
703 blob_reset(&remote);
704 }
705 fossil_print("%s\n", blob_str(&cmd));
706 fflush(stdout);
 
 
707 f = popen(blob_str(&cmd), zRW);
708 if( f==0 ){
709 fossil_fatal("cannot run command: %s", blob_str(&cmd));
710 }
711 blob_reset(&cmd);
712

Keyboard Shortcuts

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