Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions azure-devops/azext_devops/dev/repos/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def update_repo(repository, default_branch=None, name=None, organization=None, p
return repository


def show_repo(repository, organization=None, project=None, detect=None, open=False): # pylint: disable=redefined-builtin
def show_repo(repository=None, organization=None, project=None, detect=None, open=False): # pylint: disable=redefined-builtin
"""Get the details of a Git repository.
:param repository: Name or ID of the repository.
:type repository: str
Expand All @@ -108,7 +108,8 @@ def show_repo(repository, organization=None, project=None, detect=None, open=Fal
organization=organization,
project=project,
project_required=True,
repo=repository)
repo=repository,
repo_required=True)
git_client = get_git_client(organization)
repository = git_client.get_repository(project=project, repository_id=repository)
if open:
Expand Down