Skip to content

Add option to cache main repo #1

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

Open
lightsofapollo opened this issue May 31, 2012 · 5 comments
Open

Add option to cache main repo #1

lightsofapollo opened this issue May 31, 2012 · 5 comments

Comments

@lightsofapollo
Copy link

For b2g/gaia we have a large repo. Would be nice to have an option to cache the main repo
then do a git reset --hard && git clean && git pull origin master before merging PR branch into it.

@lightsofapollo
Copy link
Author

Will submit a PR in the next week or so. Issue do I don't forget...

@arturadib
Copy link
Owner

that's a great idea, thanks James

@lightsofapollo
Copy link
Author

OK how does this sound:

  1. new directory private/_master
  2. when we create the private/rev update private/_master (git pull origin master)
  3. cp private/_master to create private/$REV
  4. add remote, merge PR branch
  5. biz as usual

This should keep the _master is a completely clean slate at all times as we don't run any operatons on it just use it as a cache so we don't need to re-clone the repo each time.

If this sounds good I will go ahead and start on the PR.

@arturadib
Copy link
Owner

hi James, that sounds good.

would you mind testing that in production for a few days/weeks before
we merge the PR? (ironically we don't have a test bot for Botio... :))

On Thu, May 31, 2012 at 5:50 PM, James Lal
[email protected]
wrote:

OK how does this sound:

  1. new directory private/_master
  2. when we create the private/rev update private/_master (git pull origin master)
  3. cp private/_master to create private/$REV
  4. add remote, merge PR branch
  5. biz as usual

This should keep the _master is a completely clean slate at all times as we don't run any operatons on it just use it as a cache so we don't need to re-clone the repo each time.

If this sounds good I will go ahead and start on the PR.


Reply to this email directly or view it on GitHub:
#1 (comment)

@lightsofapollo
Copy link
Author

Yeah sounds good. I will work on a test environment as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants