Skip to content

Commit 6901cf1

Browse files
authored
fix: sources inconsistencies on https repos url and urls suffixed by .git (#98)
1 parent 5e80874 commit 6901cf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/src/Kustomization.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export function RevisionWidget(props) {
104104
// const reconcilingCondition = reconcilingConditions.length === 1 ? reconcilingConditions[0] : undefined
105105
// const reconciling = reconcilingCondition && reconcilingConditions[0].status === "True"
106106

107-
const url = source.spec.url.slice(source.spec.url.indexOf('@') + 1)
107+
const url = source.spec.url.slice(source.spec.url.indexOf('@') + 1).replace(/https?:\/\//g, '').replace(/\.git/g, '')
108108

109109
const navigationHandler = inFooter ?
110110
() => handleNavigationSelect("Sources", source.metadata.namespace, source.metadata.name, source.kind) :

0 commit comments

Comments
 (0)