Skip to content
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

Merged
merged 7 commits into from
Feb 6, 2018
Merged

Fix: Annotations upgrade script #613

merged 7 commits into from
Feb 6, 2018

Conversation

pramodsum
Copy link
Contributor

No description provided.

@boxcla
Copy link

boxcla commented Jan 31, 2018

Verified that @pramodsum has signed the CLA. Thanks for the pull request!

git fetch github-upstream || return 1;

# Update to latest code on GitHub master
git checkout master || return 1
Copy link
Contributor

@DanDeMicco DanDeMicco Jan 31, 2018

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 ?

Copy link
Contributor

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 "----------------------------------------------------"
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@pramodsum pramodsum merged commit 9d086a9 into box:master Feb 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants