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 7bf9475 commit 96d233fCopy full SHA for 96d233f
mix_messy_graph/verify.py
@@ -56,7 +56,9 @@ def verify(exercise: GitAutograderExercise) -> GitAutograderOutput:
56
main_branch = exercise.repo.branches.branch("main")
57
merge_commits = [c for c in main_branch.commits if len(c.parents) > 1]
58
merge_reflogs = [e for e in main_branch.reflog if "merge" in e.action]
59
- if merge_commits or merge_reflogs:
+ # We expect 1 merge reflog entry because of the setup step which merges the branch,
60
+ # but no other merges should be present
61
+ if merge_commits or len(merge_reflogs) > 1:
62
raise exercise.wrong_answer([SQUASH_NOT_USED])
63
64
commit_messages = [ensure_str(c.commit.message) for c in main_branch.commits][::-1]
0 commit comments