Talk:Portage with Git

From Gentoo Wiki
Jump to:navigation Jump to:search
Note
Before creating a discussion or leaving a comment, please read about using talk pages. To create a new discussion, click here. Comments on an existing discussion should be signed using ~~~~:
A comment [[User:Larry|Larry]] 13:52, 13 May 2024 (UTC)
: A reply [[User:Sally|Sally]] 12:21, 5 November 2024 (UTC)
:: Your reply ~~~~

New page

Talk status
This discussion is done.

Hi Xerxeslins‎ . Thanks for the addition! unbelievable we didn't have this already.

I'm not sure this short topic needs it's own page, I'll probably move the contents to a preexisting page, such as ebuild repository, when I get time. I've just added some info about what topics merit a new page to Help:Starting a new page, but the article still needs more info on this.

-- Ris (talk) 11:49, 20 August 2022 (UTC)

note

Talk status
This discussion is done as of 2022-12-26.

Yes great addition thank you! However there is one thing... I needed to add "sync-depth = 1" >> /etc/portage/repos.conf/eselect-repo.conf

  [gentoo]  
  location = /var/db/repos/gentoo  
  sync-type = git  
  sync-uri = https://github.com/gentoo-mirror/gentoo.git  
  sync-depth = 1  

as emerge --sync would just hang @ "/usr/bin/git fetch origin"

* Running emerge --sync  
  >>> Syncing repository 'gentoo' into '/var/db/repos/gentoo'...  
  /var/db/repos/gentoo  
  /usr/bin/git fetch origin...............................................................  

But sync depth 1 fixes it

* Running emerge --sync
  >>> Syncing repository 'gentoo' into '/var/db/repos/gentoo'...
  /var/db/repos/gentoo
  /usr/bin/git fetch origin --depth 1
  remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
  === Sync completed for gentoo

Cheers! FilthyPitDog (talk) 12:13, 24 November 2022 (UTC)

Thanks for the heads up! It looks like "sync-depth = 1" has just been made default! Project:Portage/Sync#Changes.
-- Ris (talk) 02:15, 24 December 2022 (UTC)
Closing this discussion. No need to keep it open anymore. The hang issues with git (which I believe was really caused by the remote server performing calculations) has been fixed with --depth 1, which as ris stated, is now the default behavior. --Maffblaster (talk) 04:47, 27 December 2022 (UTC)