File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ pretty_env_logger = { version = "0.4", optional = true }
32
32
anyhow = " 1.0"
33
33
filetime = " 0.2.9"
34
34
flate2 = { version = " 1.0.3" , default-features = false , features = [" zlib" ] }
35
- git2 = " 0.13.1 "
35
+ git2 = " 0.13.5 "
36
36
git2-curl = " 0.14.0"
37
37
glob = " 0.3.0"
38
38
hex = " 0.4"
@@ -44,7 +44,7 @@ jobserver = "0.1.21"
44
44
lazycell = " 1.2.0"
45
45
libc = " 0.2"
46
46
log = " 0.4.6"
47
- libgit2-sys = " 0.12.1 "
47
+ libgit2-sys = " 0.12.5 "
48
48
memchr = " 2.1.3"
49
49
num_cpus = " 1.0"
50
50
opener = " 0.4"
Original file line number Diff line number Diff line change @@ -204,12 +204,8 @@ impl<'cfg> PathSource<'cfg> {
204
204
root. display( )
205
205
)
206
206
} ) ?;
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 ( ) {
213
209
return Ok ( Some ( self . list_files_git ( pkg, & repo, filter) ?) ) ;
214
210
}
215
211
// Package Cargo.toml is not in git, don't use git to guide our selection.
You can’t perform that action at this time.
0 commit comments