Skip to content

Commit 1eeefeb

Browse files
ice201508jiuling
andauthored
main__command-line-url-fix (#1294)
* Draft MR * command-line-url-fix --------- Co-authored-by: jiuling <[email protected]>
1 parent 33bc39c commit 1eeefeb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

frontend/src/components/shared/RepoClone.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,8 +381,9 @@
381381
return url ? new URL(url).protocol : 'https'
382382
})
383383
const httpCloneProtocolHostname = computed(() => {
384-
const url = new URL(httpCloneUrl.value)
385-
return url ? `${url.protocol}//${url.hostname}` : ''
384+
const url = new URL(CSGHUB_SERVER)
385+
if (!url) return ''
386+
return `${url.protocol}//${url.hostname}`
386387
})
387388
388389
const httpsCloneCode = computed(() => {

0 commit comments

Comments
 (0)