Fixed a couple bugs in tests and worktree path handling

This commit is contained in:
Mikayla Maki 2022-10-03 17:18:38 -07:00
parent 6f6d72890a
commit 6f7547d28f
4 changed files with 30 additions and 31 deletions

View file

@ -19,6 +19,7 @@ impl GitRepository for LibGitRepository {
fn logic(repo: &LibGitRepository, relative_file_path: &Path) -> Result<Option<String>> {
const STAGE_NORMAL: i32 = 0;
let index = repo.index()?;
dbg!(relative_file_path);
let oid = match index.get_path(relative_file_path, STAGE_NORMAL) {
Some(entry) => entry.id,
None => return Ok(None),