fix(server): read bound repo from project_source_bindings.source_ref

This commit is contained in:
weichen
2026-09-26 01:00:37 +00:00
parent f394bb15f9
commit a52816299d
+1 -1
View File
@@ -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)