Git regression

On the beta channel (I am not sure if it ever did on the stable channel), git sync was working with ssh.
Now it doesn’t anymore, it prompts for username and password/token.
I thought this might be because of the fix on windows to get rid of the intermediate window, but I tried

#[cfg(target_os = "windows")]

use std::os::windows::process::CommandExt;

use std::process::Command;

#[cfg(target_os = "windows")]

const CREATE_NO_WINDOW: u32 = 0x0800_0000;

fn main() {

let mut probe = Command::new("git");

probe.arg("--version");

#[cfg(target_os = "windows")]

probe.creation_flags(CREATE_NO_WINDOW);

let status = probe.status().unwrap();

if !status.success() {

panic!("Git not found");

}

let out = probe.output().unwrap();

if !out.stdout.is_empty() {

println!("{}", String::from_utf8_lossy(&out.stdout));

}

if !out.stderr.is_empty() {

println!("{}", String::from_utf8_lossy(&out.stderr));

}

}
and it shows the version correctly:

git version 2.52.0.windows.1

Please authenticate to join the conversation.

Upvoters
Status

Up Next

Board

Feedback

Tags

Bug

Date

6 months ago

Author

Jerome David

Subscribe to post

Get notified by email when there are changes.