aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2022-05-23 20:22:54 +0100
committerChristopher Baines <mail@cbaines.net>2022-05-23 20:22:54 +0100
commit3596eceed52220d8dbb0aa3987fef0251d5ab196 (patch)
tree55b3440e39cc42c8a893622b034e8665ddea79dd
parente5cb793d4e1853dd3ae675e3f3bbcf3e4cb58304 (diff)
downloaddata-service-3596eceed52220d8dbb0aa3987fef0251d5ab196.tar
data-service-3596eceed52220d8dbb0aa3987fef0251d5ab196.tar.gz
Add missing git_branches query part to insert query
-rw-r--r--guix-data-service/model/package-derivation-by-guix-revision-range.scm1
1 files changed, 1 insertions, 0 deletions
diff --git a/guix-data-service/model/package-derivation-by-guix-revision-range.scm b/guix-data-service/model/package-derivation-by-guix-revision-range.scm
index 671771e..585c2e3 100644
--- a/guix-data-service/model/package-derivation-by-guix-revision-range.scm
+++ b/guix-data-service/model/package-derivation-by-guix-revision-range.scm
@@ -151,6 +151,7 @@ INNER JOIN guix_revisions
AND revision_packages.revision_id = guix_revisions.id
INNER JOIN git_branches
ON git_branches.name = $2
+ AND git_branches.git_repository_id = $1
INNER JOIN git_commits
ON git_branches.id = git_commits.git_branch_id
AND guix_revisions.commit = git_commits.commit