We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 333aa65 commit 609d608Copy full SHA for 609d608
src/cargo/sources/path.rs
@@ -652,7 +652,7 @@ fn discover_gix_repo(root: &Path) -> CargoResult<Option<gix::Repository>> {
652
let index = repo
653
.index_or_empty()
654
.with_context(|| format!("failed to open git index at {}", repo.path().display()))?;
655
- let repo_root = repo.work_dir().ok_or_else(|| {
+ let repo_root = repo.workdir().ok_or_else(|| {
656
anyhow::format_err!(
657
"did not expect repo at {} to be bare",
658
repo.path().display()
@@ -702,7 +702,7 @@ fn list_files_gix(
702
.emit_empty_directories(false);
703
let index = repo.index_or_empty()?;
704
let root = repo
705
- .work_dir()
+ .workdir()
706
.ok_or_else(|| anyhow::format_err!("can't list files on a bare repository"))?;
707
assert!(
708
root.is_absolute(),
0 commit comments