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

using local cache #45

Closed
yelizariev opened this issue Jan 16, 2020 · 5 comments · Fixed by #55
Closed

using local cache #45

yelizariev opened this issue Jan 16, 2020 · 5 comments · Fixed by #55

Comments

@yelizariev
Copy link

I would like to suggest to add a new option, say --cache-dir and when it's presented use one of following options to initialise repository:

  • use git clone --reference
  • use git worktree add command instead of git init -- looks as a better option as it doesn't require to change much in the scripts

This would decrease network and storage costs on working with big repositories like odoo

@sbidoul
Copy link
Member

sbidoul commented Jan 16, 2020

Alternatively, if the first fetch was done with git clone instead of git init + git fetch it would naturally benefit from git-autoshare if installed.

@sbidoul
Copy link
Member

sbidoul commented Jan 16, 2020

Possibly related to #28

@mileo
Copy link

mileo commented Oct 9, 2020

Alternatively, if the first fetch was done with git clone instead of git init + git fetch it would naturally benefit from git-autoshare if installed.

Hi, @sbidoul I installed git-autoshare and git-aggregator, configure the PATH to use git autoshare automaticaly:

[mileo@mileo-xps odoo]$ git clone https://github.com/odoo/odoo src --branch=12.0 
git-autoshare clone added --reference /home/mileo/.cache/git-autoshare/github.com/odoo
Cloning into 'src'...
Updating files: 100% (22185/22185), done.
[mileo@mileo-xps odoo]$ 

But when i try to use git-aggregator it doesn't use the autoshare. Is there anything additional that must be done to integrate them?

@sbidoul
Copy link
Member

sbidoul commented Oct 10, 2020

@mileo that is what I was trying to explain above. git-aggregator initializes the repo with git init + git fetch, so git clone is never called and therefore git-autoshare has no chance to kick in.

It might be possible to modifiy git-aggregator to do a git clone first.

@mileo
Copy link

mileo commented Oct 10, 2020

@mileo that is what I was trying to explain above. git-aggregator initializes the repo with git init + git fetch, so git clone is never called and therefore git-autoshare has no chance to kick in.

It might be possible to modifiy git-aggregator to do a git clone first.

Ahh got it, in the end that's what i'm doing here. Thanks

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

Successfully merging a pull request may close this issue.

3 participants