Talk:Portage Git Mirror

From Funtoo
Jump to: navigation, search

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.

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

Maybe is git clone --depth 1 --mirror --bare git:// portage.git an better option for the mirror clone?