PyBites-Open-Source / eatlocal

This package helps users solve PyBites code challenges on their local machine.
MIT License
20 stars 9 forks source link

Problems pushing to Github if local repo differs from remote. #15

Closed rhelmstedter closed 2 years ago

rhelmstedter commented 2 years ago

If local repo differs from remote, eatlocal submit hides git error message and continues. The bite is not actually pushed even though eatlocal claims that is was. eatlocal should display the error from git and exit.

rhelmstedter commented 2 years ago

This has been addressed by using gitpython. This requires creating passing in the local repo. That means creating a third environment variable called PYBITES_REPO.

Now eatlocal raises an error stating that the git push command failed.