Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

Commit

Permalink
cmd/list/provider: Fix repository name
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel Mocanu <gabi.mocanu98@gmail.com>
  • Loading branch information
gabrielmocanu authored and nderjung committed Apr 7, 2022
1 parent b9893d7 commit 6d046f4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kraft/cmd/list/provider/github.py
Expand Up @@ -185,7 +185,9 @@ def get_component_from_github(ctx, origin=None, org=None, repo=None):
from .types import ListProviderType

if isinstance(repo, str):
if ".git" in repo:
if repo == '.github':
pass
elif ".git" in repo:
repo = repo.split(".")[0]
github_api = Github(ctx.obj.env.get('UK_KRAFT_GITHUB_TOKEN', None))
repo = github_api.get_repo(
Expand Down

0 comments on commit 6d046f4

Please sign in to comment.