Fix spurious addition hunks in files with no git repo (#24288)
Release Notes: - N/A
This commit is contained in:
@@ -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!(
|
||||
|
||||
Reference in New Issue
Block a user