Commit ae1f647a authored by Alvin Cheung's avatar Alvin Cheung
Browse files

modified turn in script for hw1 and slight edits for hw1 instructions

parent 54588efd
......@@ -351,6 +351,12 @@ Note that it's possible that there aren't any pending changes in the upstream re
All CSE 414 assignments are to be completed **INDIVIDUALLY**! However, you may discuss your high-level approach to solving each lab with other students in the class (and you are always welcome to discuss with any of the course staff).
### Regrades
We will pushing feedback on the assignment to your repo. For regrading, please post a *private message to the staff* on [Piazza]( *within one week* after you receive the staff feedback. Unfortunately we will not be able to handle late regrade requests.
### Submitting your assignment
You may submit your code multiple times; we will use the latest version you submit that arrives
test -z "$1" && echo "Usage example: $0 hw1" && exit 1
#check no uncommitted changes.
(git status | grep -q modified:) && echo 'Error. There are uncommitted changes in your working directory. You can do "git status" to see them.
Please commit or stash uncommitted changes before submitting' && exit 1
COMMIT=$(git log | head -n 1 | cut -b 1-14)
if (git tag $1 2>/dev/null)
if (git tag $hw 2>/dev/null)
echo "Created tag '$1' pointing to $COMMIT"
echo "Created tag '$hw' pointing to $COMMIT"
git tag -d $1 && git tag $1
echo "Re-creating tag '$1'... (now $COMMIT)"
git tag -d $hw && git tag $hw
echo "Re-creating tag '$hw'... (now $COMMIT)"
echo "Now syncing with origin..."
git push origin --mirror #--atomic
echo "Please verify on GitLab that your tag '$1' matches what you expect. "
echo "Please verify in gitlab that your tag '$hw' matches what you expect. "
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment