Difference between revisions of "Talk:Portage Git Mirror"

From Funtoo
Jump to navigation Jump to search
m
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{PageNeedsUpdates}}
== Cloning instructions will wipe distfiles cache. ==
{{SectionNeedsUpdates}}


were fetching the git tree from upstream....
== Cloning from local git-daemon ==


so now how do we set our portage so emerge --sync pulls from our localized git repository?[[User:Threesixes|Threesixes]] ([[User talk:Threesixes|talk]]) 01:46, December 14, 2014 (UTC)
The existing instructions will also wipe the dist files cache which could be quite big. The following is based on my notes for fixing portage if it's repository got corrupt.
:ok so previous post i posted only to note the syntax... actually testing it today, it wants to fetch from upstream instead of the local git...  mv /usr/portage /usr/portage.old probably must occur on dirty systems previously syncing against funtoo. [[User:Threesixes|Threesixes]] ([[User talk:Threesixes|talk]]) 22:18, December 18, 2014 (UTC)
 
<console>
###i## cd /usr/portage
###i## git clone --depth 1 git://git.lan/portage.git tmp
###i## rm -r .git
###i## mv tmp/.git .
###i## git reset --hard
###i## chown -R portage:portage /usr/portage
</console>
 
Maybe is <code>git clone --depth 1 --mirror --bare git://github.com/funtoo/ports-2012.git portage.git</code> an better option for the mirror clone?

Latest revision as of 08:13, July 6, 2016

Cloning instructions will wipe distfiles cache.

Cloning from local git-daemon

The existing instructions will also wipe the dist files cache which could be quite big. The following is based on my notes for fixing portage if it's repository got corrupt.

root # cd /usr/portage
root # git clone --depth 1 git://git.lan/portage.git tmp
root # rm -r .git
root # mv tmp/.git .
root # git reset --hard
root # chown -R portage:portage /usr/portage

Maybe is git clone --depth 1 --mirror --bare git://github.com/funtoo/ports-2012.git portage.git an better option for the mirror clone?