Skip to content

Commit

Permalink
git/e2e: Ensure changes are staged
Browse files Browse the repository at this point in the history
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
  • Loading branch information
Paulo Gomes committed Dec 6, 2022
1 parent 4195673 commit f7a2814
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions git/internal/e2e/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,11 @@ func initRepo(tmp, repoURL, branch, fixture, username, password string) error {
return err
}

_, err = wt.Add(".")
if err != nil {
return err
}

info := mockCommitInfo()
_, err = wt.Commit(info.Message, &extgogit.CommitOptions{
Author: &object.Signature{
Expand Down

0 comments on commit f7a2814

Please sign in to comment.