fork of https://github.com/sourcegraph/zoekt
0

Configure Feed

Select the types of activity you want to include in your feed.

gitindex: BenchmarkPrepareNormalBuild uses ZOEKT_BENCH_REPO (#1041)

+3 -4
+3 -4
gitindex/index_test.go
··· 1149 1149 } 1150 1150 1151 1151 func BenchmarkPrepareNormalBuild(b *testing.B) { 1152 - // NOTE: To run the benchmark, download a large repo (like github.com/chromium/chromium/) and change this to its path. 1153 - repoDir := "/path/to/your/repo" 1154 - repo, err := git.PlainOpen(repoDir) 1152 + repoDir := requireBenchGitRepo(b) 1153 + repo, err := plainOpenRepo(repoDir) 1155 1154 if err != nil { 1156 1155 b.Fatalf("Failed to open test repository: %v", err) 1157 1156 } ··· 1160 1159 RepoDir: repoDir, 1161 1160 Submodules: false, 1162 1161 BranchPrefix: "refs/heads/", 1163 - Branches: []string{"main"}, 1162 + Branches: []string{"HEAD"}, 1164 1163 BuildOptions: index.Options{ 1165 1164 RepositoryDescription: zoekt.Repository{ 1166 1165 Name: "test-repo",