diff --git a/internal/server/swboot_handlers.go b/internal/server/swboot_handlers.go index fc9b666a..d25f6b8a 100644 --- a/internal/server/swboot_handlers.go +++ b/internal/server/swboot_handlers.go @@ -228,7 +228,7 @@ func (s *Server) boundRepoPath(ctx context.Context, projectID int64) string { defer cancel() var repoPath string err := s.rt.Pool.QueryRow(cctx, ` - SELECT repo_path FROM project_source_bindings + SELECT source_ref FROM project_source_bindings WHERE project_id=$1 AND permission_scope='controlled_patch' ORDER BY created_at DESC LIMIT 1 `, projectID).Scan(&repoPath)