Merge pull request #3249 from gitbutlerapp/fix-fetching-with-system-executable

fix fetching with system executable
This commit is contained in:
Josh Junon 2024-03-20 18:23:33 +01:00 committed by GitHub
commit f61af86852
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 8 deletions

View File

@ -2665,7 +2665,7 @@ pub fn push(
with_force,
credentials,
None,
askpass.clone(),
askpass,
)?;
vbranch.upstream = Some(remote_branch.clone());
@ -2674,12 +2674,6 @@ pub fn push(
.write(&mut vbranch)
.context("failed to write target branch after push")?;
project_repository.fetch(
remote_branch.remote(),
credentials,
askpass.map(|(broker, _)| (broker, "push".to_string())),
)?;
Ok(())
}

View File

@ -261,7 +261,7 @@ where
Fut: std::future::Future<Output = Option<String>>,
Extra: Send + Clone,
{
let mut args = vec!["fetch", "--quiet", "--no-write-fetch-head"];
let mut args = vec!["fetch", "--quiet"];
let refspec = refspec.to_string();