Fix spurious addition hunks in files with no git repo (#24288)
Release Notes: - N/A
This commit is contained in:
parent
5a25751521
commit
ffe503d77c
2 changed files with 4 additions and 6 deletions
|
@ -886,7 +886,7 @@ impl Worktree {
|
|||
}
|
||||
}
|
||||
}
|
||||
Ok(None)
|
||||
Err(anyhow!("No repository found for {path:?}"))
|
||||
})
|
||||
}
|
||||
Worktree::Remote(_) => {
|
||||
|
@ -910,7 +910,7 @@ impl Worktree {
|
|||
}
|
||||
}
|
||||
}
|
||||
Ok(None)
|
||||
Err(anyhow!("No repository found for {path:?}"))
|
||||
})
|
||||
}
|
||||
Worktree::Remote(_) => Task::ready(Err(anyhow!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue