Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8656147
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T15:12:27+00:00 2026-06-12T15:12:27+00:00

I have rolled a Gerrit instance for my organization, got LDAP authentication going, and

  • 0

I have rolled a Gerrit instance for my organization, got LDAP
authentication going, and have imported some working copies of Android,
manually. Cool.

The working copies do not include references to the upstream (remote)
branches, however. For a given project, say frameworks/base, what I’d
hope to achieve is:

git branch -r  
# See Google branches
git rebase # to a Google branch.
git push # back to my Gerrit instance.

How do I ensure that my local git repos are aware of the upstream
projects, as above? Do I need to mirror the AOSP content, locally?

I have tried reading some documentation, and also simply adding a remote
delcation for Google to my manifest xml. Push replication is covered
widely, but this is not my use case, as I want to track remote branches,
not push my local changes back up to them.

Thank you!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T15:12:28+00:00Added an answer on June 12, 2026 at 3:12 pm

    As far as I know, most teams use a script which will pull down the Google version of Android and push it directly to their Gerrit servers, bypassing review. There is no setting in the manifest xml file which can help with this.

    Some Android shops want to use a different namespace for the upstream branches and tags. For example, rather than master and froyo branches and the android-4.1.1_r6 tag, they might prefix everything with external – external/master, external/froyo, and external/android-4.1.1_r6.

    Other shops prefix their internal branches and tags in a similar fashion.

    Your script to do this work will look similar to this (untested). First set up a local repo clone from upstream using the --mirror option.

    # this only needs to be ran once, or for any new repositories added to repo:
    repo forall -c \
      'git remote add local_server ssh://path/to/local/gerrit:29418/$REPO_PROJECT'
    
    # fetch changes
    repo forall -c 'git fetch'
    
    # push to your local Gerrit server
    repo forall -c 'git push local_server refs/*:refs/external/*'
    

    You can, of course, use a cron job to automate this script. Once this is in place, when developers run git branch -r they will see the origin/external/blah branches from upstream and can rebase based on those branches.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have my own hand-rolled PHP MVC framework for some projects that I'm working
i have seen some hand rolled solutions but does jquery out of the box
Based on some limitations with the NDK standalone toolchain and bionic, I have rolled
I have just rolled out a new Intranet that ive been working on for
Ignoring how I got to this (I have rolled up various function calls to
I have several matlpotlib functions rolled into some django-celery tasks. Every time the tasks
I have just rolled a custom configuration section, created an accompanying schema document for
We have a custom PHP/MySQL CMS running on Linux/Apache thats rolled out to multiple
I have this nav that uses addClass('hover') when the mouse is rolled over an
very new to signalR, and have rolled up a very simple app that will

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.