Skip to content

Commit

Permalink
PaperConfigOverview: Rename repo to pygit_repo
Browse files Browse the repository at this point in the history
  • Loading branch information
boehmseb committed Sep 18, 2024
1 parent d8201b8 commit a159d25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions varats/varats/plots/paper_config_overview.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ def _load_projects_ordered_by_year(
case_study, experiment_type
)

repo = get_local_project_repo(case_study.project_name).pygit_repo
pygit_repo = get_local_project_repo(case_study.project_name).pygit_repo
revisions: tp.Dict[int, tp.List[tp.Tuple[
ShortCommitHash, FileStatusExtension]]] = defaultdict(list)

# dict: year -> [ (revision: str, status: FileStatusExtension) ]
for rev, status in processed_revisions:
commit = repo.get(rev.hash)
commit = pygit_repo.get(rev.hash)
commit_date = datetime.utcfromtimestamp(commit.commit_time)
revisions[commit_date.year].append((rev, status))

Expand Down

0 comments on commit a159d25

Please sign in to comment.