Skip to content

Commit 80e19b1

Browse files
authored
[branch-forward] Fix verify does not consider initial commit (#218)
# Exercise Review ## Exercise Discussion Fix #217 ## Checklist - [ ] If you require a new remote repository on the `Git-Mastery` organization, have you [created a request](https://github.com/git-mastery/exercises/issues/new?template=request_exercise_repository.md) for it? - [X] Have you written unit tests using [`repo-smith`](https://github.com/git-mastery/repo-smith) to validate the exercise grading scheme? - [X] Have you tested your changes using the instructions posted? - [X] Have you verified that this exercise does not already exist or is not currently in review? - [ ] Did you introduce a new grading mechanism that should belong to [`git-autograder`](https://github.com/git-mastery/git-autograder)? - [ ] Did you introduce a new dependency that should belong to [`app`](https://github.com/git-mastery/app)?
1 parent 57ae80d commit 80e19b1

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

branch_forward/test_verify.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
@contextmanager
2424
def base_setup() -> Iterator[Tuple[GitAutograderTest, RepoSmith]]:
2525
with loader.start() as (test, rs):
26+
rs.git.commit(message="Set initial state", allow_empty=True)
2627
rs.git.commit(message="Introduce Harry", allow_empty=True)
2728
rs.git.commit(message="Add about family", allow_empty=True)
2829

branch_forward/verify.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
ONLY_WITH_SALLY_MERGED = "Only one of the two starting branches can be fast-forward merged into 'main'. Do not create new branches."
1414

1515
EXPECTED_MAIN_COMMIT_MESSAGES = {
16+
"Set initial state",
1617
"Introduce Harry",
1718
"Add about family",
1819
"Add cast.txt",

0 commit comments

Comments
 (0)