We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f443ecd commit cb2fecfCopy full SHA for cb2fecf
1 file changed
shared/utils/git-providers.ts
@@ -301,8 +301,8 @@ export function normalizeGitUrl(input: string): string | null {
301
.replace(/(\.[^./]+?):/, '$1/') // change ".com:" to ".com/" from "ssh://user@host.com:..."
302
.replace(/^git:\/\//, 'https://')
303
.replace(/^ssh:\/\//, 'https://')
304
- url = url.includes('://') ? url : `https://${url}`
305
- return url || null
+ if (!url) return null
+ return url.includes('://') ? url : `https://${url}`
306
}
307
308
export function parseRepoUrl(input: string): RepoRef | null {
0 commit comments