We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2142512 commit 61dae1eCopy full SHA for 61dae1e
packages/web/src/features/search/fileSourceApi.ts
@@ -32,7 +32,7 @@ export const getFileSource = async ({ path: filePath, repo: repoName, ref }: Fil
32
if (errorMessage.includes('does not exist') || errorMessage.includes('fatal: path')) {
33
return fileNotFound(filePath, repoName);
34
}
35
- if (errorMessage.includes('unknown revision') || errorMessage.includes('bad revision')) {
+ if (errorMessage.includes('unknown revision') || errorMessage.includes('bad revision') || errorMessage.includes('invalid object name')) {
36
return unexpectedError(`Invalid git reference: ${gitRef}`);
37
38
throw error;
0 commit comments