1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-04 13:25:26 +02:00

Revert "fix(gitops): correct commit hash link [EE-6346] (#10722)" (#10750)

This reverts commit 83cd5d9b2f.
This commit is contained in:
Ali 2023-12-05 09:16:22 +13:00 committed by GitHub
parent b75f0e561b
commit b660feafbf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 16 deletions

View file

@ -19,8 +19,3 @@ 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$/, '');
}