Skip to content

Commit

Permalink
repo_resolver: repo_details missing information (#601)
Browse files Browse the repository at this point in the history
repo_details() now populates the information for submodules and remotes.
  • Loading branch information
Javagedes authored Jun 29, 2023
1 parent 7ce109f commit c1ff359
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions edk2toolext/environment/repo_resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,8 @@ def repo_details(abs_file_system_path):
details["Bare"] = repo.bare
details["Dirty"] = repo.is_dirty(untracked_files=True)
details["Initialized"] = True
details["Submodules"] = [submodule.name for submodule in repo.submodules]
details["Remotes"] = [remote.name for remote in repo.remotes]

# 1. Use the remote associated with the branch if on a branch and it exists
if not repo.head.is_detached and repo.branches[repo.head.ref.name].tracking_branch():
Expand Down

0 comments on commit c1ff359

Please sign in to comment.