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 18e966e commit fe734b7Copy full SHA for fe734b7
src/ui/diff/splitDiffView.ts
@@ -173,8 +173,13 @@ export default class SplitDiffView extends ItemView {
173
if (
174
error.message.includes("does not exist") ||
175
error.message.includes("unknown revision or path") ||
176
- error.message.includes("exists on disk, but not in")
+ error.message.includes("exists on disk, but not in") ||
177
+ error.message.includes("fatal: bad object")
178
) {
179
+ // Occurs when trying to run diff with an object that's actually a nested respository
180
+ if (error.message.includes("fatal: bad object")) {
181
+ this.plugin.displayError(error.message);
182
+ }
183
// If the file does not exist in the commit, return an empty string
184
return "";
185
}
0 commit comments