Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

add command for updating third_party #893

Merged
merged 3 commits into from
Dec 14, 2018
Merged

add command for updating third_party #893

merged 3 commits into from
Dec 14, 2018

Conversation

cvan
Copy link
Contributor

@cvan cvan commented Dec 14, 2018

compilation errors are thrown if the developer's checkout of the third-party repo (in their third_party directory) is not up to date. this command fixes that.

compilation errors are thrown if the developer's checkout of the third-party repo (in their `third_party` directory) is not up to date. this command fixes that.
@cvan cvan added enhancement This issue is a new feature or request documentation Developer documentation (in this project) or user-facing documentation (support.mozilla.org) labels Dec 14, 2018
@cvan cvan requested a review from daoshengmu December 14, 2018 22:09
README.md Outdated
The [repo in `third_party`](https://github.com/MozillaReality/FirefoxReality-android-third-party) can be updated like so:

```bash
pushd third_party && git checkout master && git pull && popd
Copy link
Contributor

Choose a reason for hiding this comment

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

pushd third_party && git fetch && git rebase origin/master && popd

Is how I would do it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I like your suggestion better. changed.

I use git pull which does git pull --rebase because I have rebase = true in my ~/.gitconfig:

[branch "master"]
	remote = origin
	merge = refs/heads/master
	rebase = true

notice the `git checkout origin/master` in case `third_party` was checked out to a different branch/sha
Copy link
Contributor

@daoshengmu daoshengmu left a comment

Choose a reason for hiding this comment

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

LGTM. thanks!

@bluemarvin
Copy link
Contributor

While we don’t currently have multiple branches, if someone does have a branch checked out, they would need to check out the master branch first. I think this is fine though.

@cvan cvan merged commit 0a07110 into master Dec 14, 2018
@cvan cvan deleted the third_party-cmd branch December 14, 2018 23:26
@cvan cvan self-assigned this Dec 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Developer documentation (in this project) or user-facing documentation (support.mozilla.org) enhancement This issue is a new feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants