Re: how to shrink a repository

Yves Blusseau <[email protected]>
Newsgroups gmane.linux.leaf.devel
Message-ID <[email protected]>
> Le 14 mars 2015 à 20:12, kp kirchdoerfer <[email protected]> a écrit :
> 
> Hi Yves;
> 
> you may have followed the threads about LEAF upgrade...
> 
> Today we do have a package repository with for packages
> 
> https://sourceforge.net/p/leaf/packages/ci/master/tree/
> 
> The summed packages size is about 300MB; but .git/objects is about 5,6GB.
> 
> I have an idea how I (mis)managed it.
> 
> First question, how can we bring down the repository to a reasonable size?
> I don't need any history, previous commits, whatelse - just the latest 
> commits.
> Even those can be removed if you have a better idea how to work with 
> packages...
> Which leads to the second question - how can we provide a repository with 
> latest/stable/versionx packages and avoid to have it grow that much?
> 
> thx kp

Hi KP,

i have answer the question in the LEAF upgrade thread :D.
The best for me, (and it is what i use at work) is to use my git-store command to manage the package repository.
With this you have the profit of versioning the packages and group the packages by version/architecture using branches without needed to retrieve all the binaries.

I have "transform" your git repository https://sourceforge.net/p/leaf/packages/ci/master/tree/ to a "git-store repository": https://sourceforge.net/p/leaf/packages-store/ci/master/tree/ so you can see the difference between the two.

use git clone git://git.code.sf.net/p/leaf/packages-store leaf-packages-store and you will retrieve the tree without the binaries.

Now with the git-store command you can retrieve any packages you want using the transport protocol that was used to clone the repository.
See the Readme.txt file for information (https://sourceforge.net/p/leaf/packages-store/ci/master/tree/Readme.txt)

Regards,
Yves
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/

_______________________________________________
leaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/leaf-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.