Yaak Logo
Yaak
Feedback/Git regression

Git regression

Jerome David·3 months ago
Up NextBug

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


Windowsv2025.10.0-beta.2

Comments (3)

Sign in to leave a comment.

Gregory Schier

What do you have in your Git remotes?

Jerome DavidOP

git@{server}:{user}/{repo}.git

Where server is a private repo, user is my username and repo is the name of the repository.
I had forgotten to start my vpn to get access to the private repo. With the vpn then it’s working. When we don’t have access, maybe yaak could still detect that the remote is ssh instead of asking for credentials as if it was https?

Gregory Schier

That’s a good idea. I’ll add a match to check for the protocol

Type to search feedback...