Skip to content

Commit 4d8b0f7

Browse files
committed
Remove not used checkout
1 parent 8b8fe95 commit 4d8b0f7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

generate_metadata.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ def get_metadata(
4848
) -> tuple[int, int, datetime | None]:
4949
if not repo or not (repo_path := Path(clones_dir, 'translations', repo)).exists():
5050
return 0, 0, None
51-
(clone_repo := Repo(repo_path)).git.checkout()
52-
latest_commit = clone_repo.head.commit.committed_datetime
51+
latest_commit = Repo(repo_path).head.commit.committed_datetime
5352
if not completion:
5453
return 0, 0, latest_commit
5554
return (

0 commit comments

Comments
 (0)