ttp2542 / GradingScripts

This repository contains the Python scripts used for grading in the SWEN-123 class at RIT.
4 stars 7 forks source link

Added descriptive message when repository cannot be rolled back #8

Closed jym2584 closed 2 years ago

jym2584 commented 2 years ago

commit_hash variable was returning None when the repo cannot be pulled.

Input

Date Due (format = yyyy-mm-dd, press enter for current): 2022-01-12 Time Due (24hr, press enter for current): 12:00

Output:

Cannot rollback repository unit-01-maxstein16 because it was created past the due date (created: 2022-01-14 00:17:50). Cannot rollback repository unit-01-ds5470 because it was created past the due date (created: 2022-01-21 19:57:47). Cannot rollback repository unit-01-joshcohn27 because it was created past the due date (created: 2022-01-14 19:03:12).

I thought about deleting the repo if it can't be rolled back, but this should be fine