Skip to content

Commit 25715e4

Browse files
committed
Bump git2.
1 parent 3a5af29 commit 25715e4

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pretty_env_logger = { version = "0.4", optional = true }
3232
anyhow = "1.0"
3333
filetime = "0.2.9"
3434
flate2 = { version = "1.0.3", default-features = false, features = ["zlib"] }
35-
git2 = "0.13.1"
35+
git2 = "0.13.5"
3636
git2-curl = "0.14.0"
3737
glob = "0.3.0"
3838
hex = "0.4"
@@ -44,7 +44,7 @@ jobserver = "0.1.21"
4444
lazycell = "1.2.0"
4545
libc = "0.2"
4646
log = "0.4.6"
47-
libgit2-sys = "0.12.1"
47+
libgit2-sys = "0.12.5"
4848
memchr = "2.1.3"
4949
num_cpus = "1.0"
5050
opener = "0.4"

src/cargo/sources/path.rs

+2-6
Original file line numberDiff line numberDiff line change
@@ -204,12 +204,8 @@ impl<'cfg> PathSource<'cfg> {
204204
root.display()
205205
)
206206
})?;
207-
// Git requires forward-slashes.
208-
let repo_safe_path = repo_relative_path
209-
.join("Cargo.toml")
210-
.to_string_lossy()
211-
.replace('\\', "/");
212-
if index.get_path(Path::new(&repo_safe_path), 0).is_some() {
207+
let manifest_path = repo_relative_path.join("Cargo.toml");
208+
if index.get_path(&manifest_path, 0).is_some() {
213209
return Ok(Some(self.list_files_git(pkg, &repo, filter)?));
214210
}
215211
// Package Cargo.toml is not in git, don't use git to guide our selection.

0 commit comments

Comments
 (0)