Skip to content

Commit bb16362

Browse files
author
Lasim
committed
fix(backend): set git_branch to null if repository_url is absent
1 parent 12bdfcd commit bb16362

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/backend/src/services/mcpCatalogService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ export class McpCatalogService {
440440
null
441441
) : null,
442442
repository_subfolder: data.repository_subfolder || null,
443-
git_branch: data.git_branch || 'main',
443+
git_branch: data.repository_url ? (data.git_branch || 'main') : null,
444444
website_url: githubInfo.website_url || data.website_url,
445445
icon_url: data.icon_url || null,
446446
language: githubInfo.language || data.language,

0 commit comments

Comments
 (0)