Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
remote-helper: switch 'no_sync' to true by default
✗ CI failure Adrian Duke committed 2 months ago
commit a66d5f15e9051edc544fca1874d4fb7bf3781a40
parent 1cab036c331f5ac071f002504c44b01e95b8f25a
1 failed (1 total) View logs
1 file changed +7 -1
modified crates/radicle-remote-helper/src/main.rs
@@ -239,7 +239,13 @@ pub fn run(profile: radicle::Profile) -> Result<(), Error> {

    let stdin = io::stdin();
    let mut line = String::new();
-
    let mut opts = Options::default();
+
    let mut opts = Options {
+
        // Introduce a safer default, do not sync on push without explicit `--sync`.
+
        // As part of our efforts to reduce new user error we've changed the default
+
        // so new users can avoid easy mistakes like pushing secrets to the network.
+
        no_sync: true,
+
        ..Options::default()
+
    };
    let mut expected_refs = Vec::new();

    if let Err(e) = radicle::io::set_file_limit(4096) {