botio icon indicating copy to clipboard operation
botio copied to clipboard

Add option to cache main repo

Open lightsofapollo opened this issue 12 years ago • 5 comments

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 avatar May 31 '12 15:05 lightsofapollo

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

lightsofapollo avatar May 31 '12 15:05 lightsofapollo

that's a great idea, thanks James

arturadib avatar May 31 '12 16:05 arturadib

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.

lightsofapollo avatar May 31 '12 21:05 lightsofapollo

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: https://github.com/arturadib/botio/issues/1#issuecomment-6048520

arturadib avatar Jun 01 '12 17:06 arturadib

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

lightsofapollo avatar Jun 01 '12 18:06 lightsofapollo