-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: Annotations upgrade script #613
Conversation
Verified that @pramodsum has signed the CLA. Thanks for the pull request! |
build/upgrade_annotations.sh
Outdated
git fetch github-upstream || return 1; | ||
|
||
# Update to latest code on GitHub master | ||
git checkout master || return 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment here is incorrect. Shouldnt this be reset --hard github-upstream/master ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also side note you can look into the -e flag instead of the || return 1
# Fetch latest code | ||
git fetch github-upstream || return 1; | ||
git checkout master || return 1 | ||
|
||
# The master branch should not have any commits | ||
if [[ $(git log --oneline ...github-upstream/master) != "" ]] ; then | ||
echo "----------------------------------------------------" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change this error message to say something like you have extra commits in your master branch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
No description provided.