We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21ac308 commit 15c2647Copy full SHA for 15c2647
push_over/verify.py
@@ -46,7 +46,8 @@ def verify() -> GitAutograderOutput:
46
47
repo = GitAutograderRepo("push-over", repo_name)
48
49
- if repo.commits == 1:
+ main_branch = repo.branches.branch("main")
50
+ if len(main_branch.commits) == 1:
51
raise repo.wrong_answer([MISSING_COMMIT])
52
53
origin_remote = repo.remotes.remote("origin")
0 commit comments