mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-12 04:15:30 +00:00
fix
This commit is contained in:
parent
0633d1f23c
commit
2d50f4ef15
1 changed files with 5 additions and 4 deletions
|
|
@ -6,6 +6,7 @@ import { search } from "./searchApi";
|
||||||
import { sew } from "@/actions";
|
import { sew } from "@/actions";
|
||||||
import { withOptionalAuthV2 } from "@/withAuthV2";
|
import { withOptionalAuthV2 } from "@/withAuthV2";
|
||||||
import { QueryIR } from './ir';
|
import { QueryIR } from './ir';
|
||||||
|
|
||||||
// @todo (bkellam) #574 : We should really be using `git show <hash>:<path>` to fetch file contents here.
|
// @todo (bkellam) #574 : We should really be using `git show <hash>:<path>` to fetch file contents here.
|
||||||
// This will allow us to support permalinks to files at a specific revision that may not be indexed
|
// This will allow us to support permalinks to files at a specific revision that may not be indexed
|
||||||
// by zoekt. We should also refactor this out of the /search folder.
|
// by zoekt. We should also refactor this out of the /search folder.
|
||||||
|
|
@ -21,12 +22,12 @@ export const getFileSource = async ({ fileName, repository, branch }: FileSource
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
regexp: {
|
substring: {
|
||||||
regexp: fileName,
|
pattern: fileName,
|
||||||
case_sensitive: true,
|
case_sensitive: true,
|
||||||
file_name: true,
|
file_name: true,
|
||||||
content: false
|
content: false,
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
...(branch ? [{
|
...(branch ? [{
|
||||||
branch: {
|
branch: {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue