mirror of
https://github.com/portainer/portainer.git
synced 2025-08-04 05:15:25 +02:00
fix(gitops): correct commit hash link [EE-6346] (#10752)
Co-authored-by: testa113 <testa113>
This commit is contained in:
parent
ce4b6dc586
commit
6aa0a1ffa9
3 changed files with 16 additions and 3 deletions
|
@ -19,3 +19,8 @@ export function getValidEditorTypes(
|
|||
? _.intersection(...endpointTypes.map((type) => right[type]))
|
||||
: [EditorType.Compose, EditorType.Kubernetes];
|
||||
}
|
||||
|
||||
export function removeTrailingGitExtension(url: string) {
|
||||
// the url could have the .git extension. Remove it if it does.
|
||||
return url.replace(/\.git$/, '');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue