Skip to content

Commit 4ad36bd

Browse files
author
Stephan Dilly
committed
simplify
1 parent 08b89f0 commit 4ad36bd

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

Cargo.lock

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

asyncgit/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ keywords = ["git"]
1313

1414
[dependencies]
1515
scopetime = { path = "../scopetime", version = "0.1" }
16-
# git2 = "0.13"
17-
git2 = { path = "../../extern/git2-rs", features = ["vendored-openssl"]}
16+
git2 = "0.13"
17+
# git2 = { path = "../../extern/git2-rs", features = ["vendored-openssl"]}
1818
# git2 = { git="https://github.com/extrawurst/git2-rs.git", rev="fc13dcc", features = ["vendored-openssl"]}
1919
# pinning to vendored openssl, using the git2 feature this gets lost with new resolver
2020
openssl-sys = { version = '0.9', features= ["vendored"] }

asyncgit/src/sync/remotes/mod.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,10 @@ pub fn fetch_all(
8989
let mut remote = repo.find_remote(remote)?;
9090

9191
let mut options = FetchOptions::new();
92-
let callbacks = Callbacks::new(
93-
progress_sender.clone(),
94-
basic_credential.clone(),
95-
);
92+
let callbacks = Callbacks::new(progress_sender, basic_credential);
9693
options.prune(git2::FetchPrune::On);
9794
options.remote_callbacks(callbacks.callbacks());
98-
remote.fetch_all(Some(&mut options), None)?;
95+
remote.fetch(&[] as &[&str], Some(&mut options), None)?;
9996

10097
Ok(())
10198
}

0 commit comments

Comments
 (0)