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

Add --safe-reference for repo init #193

Open
GoogleCodeExporter opened this issue Jul 3, 2015 · 0 comments
Open

Add --safe-reference for repo init #193

GoogleCodeExporter opened this issue Jul 3, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

If you use --reference, then get rid of the referenced project tree, all 
projects based on this will no longer clone properly.

I propose adding a new option to do a "one time reference" to speed up the 
initial clone, then repack afterwards so the new project tree no longer relies 
on the referenced project tree. 

A new subcommand should also be added to "repair" a project tree that has 
previously used --reference. 

The command to repack is `git repack -ad`, and to remove the reference is `rm 
.git/objects/info/alternates`. 



Note: can someone change this in to a feature request please? It doesn't give 
me the option to.

Original issue reported on code.google.com by [email protected] on 21 Feb 2015 at 12:49

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

1 participant