aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2023-08-03 17:23:59 +0200
committerAleksandr Nogikh <nogikh@google.com>2023-08-03 15:43:51 +0000
commit746212479e443b2bb560dc310bd90300ecf31246 (patch)
treecc43cf04c876ad8eaeccf93a1a3cc51b344e4e00
parentb95100df5e0793a76c9cadcacb15ef186ad350cd (diff)
dashboard: use the original KernelRepo
We always set it for jobs and it's always relevant for the result. The problem is that, for cross-tree bisections, the original crash points to a potentially different tree. As a result, we provide wrong links to the bisected commits.
-rw-r--r--dashboard/app/jobs.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/dashboard/app/jobs.go b/dashboard/app/jobs.go
index 8a3bf20a9..42f39777f 100644
--- a/dashboard/app/jobs.go
+++ b/dashboard/app/jobs.go
@@ -1524,7 +1524,7 @@ func makeJobInfo(c context.Context, job *Job, jobKey *db.Key, bug *Bug, build *B
crash *Crash) *dashapi.JobInfo {
kernelRepo, kernelCommit := job.KernelRepo, job.KernelBranch
if build != nil {
- kernelRepo, kernelCommit = build.KernelRepo, build.KernelCommit
+ kernelCommit = build.KernelCommit
}
info := &dashapi.JobInfo{
JobKey: jobKey.Encode(),