Skip to content

Commit

Permalink
git2-rs: Use prerelease version with OpenSSH support
Browse files Browse the repository at this point in the history
  • Loading branch information
bnjmnt4n committed Mar 7, 2024
1 parent bf76080 commit df25252
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 21 deletions.
21 changes: 2 additions & 19 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ dirs = "5.0.1"
either = "1.10.0"
esl01-renderdag = "0.3.0"
futures = "0.3.30"
git2 = "0.18.2"
git2 = { git = "https://github.com/bnjmnt4n/git2-rs.git", rev = "a0235c5", default-features = false, features = ["https", "ssh-openssh"] }
gix = { version = "0.58.0", default-features = false, features = [
"index",
"max-performance-safe",
Expand Down
7 changes: 6 additions & 1 deletion lib/src/git.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1149,7 +1149,12 @@ pub fn fetch(
tracing::debug!("remote.prune");
remote.prune(None)?;
tracing::debug!("remote.update_tips");
remote.update_tips(None, false, git2::AutotagOption::Unspecified, None)?;
remote.update_tips(
None,
git2::RemoteUpdateFlags::empty(),
git2::AutotagOption::Unspecified,
None,
)?;
// TODO: We could make it optional to get the default branch since we only care
// about it on clone.
let mut default_branch = None;
Expand Down

0 comments on commit df25252

Please sign in to comment.