We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b8fe95 commit 4d8b0f7Copy full SHA for 4d8b0f7
generate_metadata.py
@@ -48,8 +48,7 @@ def get_metadata(
48
) -> tuple[int, int, datetime | None]:
49
if not repo or not (repo_path := Path(clones_dir, 'translations', repo)).exists():
50
return 0, 0, None
51
- (clone_repo := Repo(repo_path)).git.checkout()
52
- latest_commit = clone_repo.head.commit.committed_datetime
+ latest_commit = Repo(repo_path).head.commit.committed_datetime
53
if not completion:
54
return 0, 0, latest_commit
55
return (
0 commit comments