We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd7287b commit ec3f033Copy full SHA for ec3f033
helix-vcs/src/git.rs
@@ -12,7 +12,7 @@ pub struct Git;
12
13
impl DiffProvider for Git {
14
fn get_file_head(&self, file: &Path) -> Option<Vec<u8>> {
15
- debug_assert!(file.is_file());
+ debug_assert!(!file.exists() || file.is_file());
16
debug_assert!(file.is_absolute());
17
18
// discover a repository, requires a directory so we call parent (should not fail but exit gracefully in that case)
0 commit comments