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

Check local repo is up-to-date in release() #691

Closed
hadley opened this issue Jan 9, 2015 · 3 comments
Closed

Check local repo is up-to-date in release() #691

hadley opened this issue Jan 9, 2015 · 3 comments

Comments

@hadley
Copy link
Member

hadley commented Jan 9, 2015

@wch do you know how to do this? (i.e. I want to make sure there aren't commits on remote that I need to pull)

@wch
Copy link
Member

wch commented Jan 9, 2015

Maybe a git fetch and then compare SHAs for HEAD and the tracking branch?

Or maybe parse the output of git branch -vv, as suggested at http://stackoverflow.com/a/12538667/412655

$ git branch -vv
* master cd0a739 [origin/master: ahead 1] Update license information

@hadley
Copy link
Member Author

hadley commented Apr 29, 2015

Done (mostly) in 14cca3f

@hadley hadley closed this as completed Apr 29, 2015
@lock
Copy link

lock bot commented Sep 18, 2018

This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/

@lock lock bot locked and limited conversation to collaborators Sep 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants