Skip to content

Commit 15c2647

Browse files
committed
[push-over] Fix commit length checking
1 parent 21ac308 commit 15c2647

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

push_over/verify.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ def verify() -> GitAutograderOutput:
4646

4747
repo = GitAutograderRepo("push-over", repo_name)
4848

49-
if repo.commits == 1:
49+
main_branch = repo.branches.branch("main")
50+
if len(main_branch.commits) == 1:
5051
raise repo.wrong_answer([MISSING_COMMIT])
5152

5253
origin_remote = repo.remotes.remote("origin")

0 commit comments

Comments
 (0)