Code: Select all
EGIT_OVERRIDE_BRANCH_DESULTORY_UGRD=resume emerge xxxx.9999Thanks
Code: Select all
EGIT_OVERRIDE_BRANCH_DESULTORY_UGRD=resume emerge xxxx.9999I sense there's confusion here. Say again, what do you think that does and how do you know it does it? Because I don't see such a variable in git-r3 man page.linux_os2 wrote:I know how to install from a specific branch :Code: Select all
EGIT_OVERRIDE_BRANCH_DESULTORY_UGRD=resume emerge xxxx.9999
Change the EGIT_REPO_URI, but I don't know if that would work on the command line. I think you need to modify the ebuild in a local user overlay.linux_os2 wrote:howto emerge from a specific fork of repository?
Thanks

EGIT_OVERRIDE variants exist for all of the EGIT_* variables like that, it prints it on emerging (see bug 764422 for improved docs).logrusx wrote:I sense there's confusion here. Say again, what do you think that does and how do you know it does it? Because I don't see such a variable in git-r3 man page.linux_os2 wrote:I know how to install from a specific branch :Code: Select all
EGIT_OVERRIDE_BRANCH_DESULTORY_UGRD=resume emerge xxxx.9999
Change the EGIT_REPO_URI, but I don't know if that would work on the command line. I think you need to modify the ebuild in a local user overlay.linux_os2 wrote:howto emerge from a specific fork of repository?
Thanks
Best Regards,
Georgi
I made a fork of the repository "desultory/ugrd" and cloned "main" and "resume" branch into the "linuxandos2/ugrd".NeddySeagoon wrote:linux_os2,
Do you fork or branch?
A fork is a copy of a repository
A branch is a the same repository but contains work that is being developed, for whatever reason.
Thanks Sam!sam_ wrote: EGIT_OVERRIDE variants exist for all of the EGIT_* variables like that, it prints it on emerging (see bug 764422 for improved docs).
From the bug Sam referenced:linux_os2 wrote:I made a fork of the repository "desultory/ugrd" and cloned "main" and "resume" branch into the "linuxandos2/ugrd".NeddySeagoon wrote:linux_os2,
Do you fork or branch?
A fork is a copy of a repository
A branch is a the same repository but contains work that is being developed, for whatever reason.
I want to emerge from the "resume" branch from my own "linuxandos2/ugrd" repository.
Those shod work for you. You need to override the repo URI. If you want particular branch from it, override that too the same way you've done it in the first post.- EGIT_OVERRIDE_REPO_${NAME} -- to override the repository URI,
- EGIT_OVERRIDE_BRANCH_${NAME} -- to override the branch,
- EGIT_OVERRIDE_COMMIT_${NAME} -- to override the commit id or tag,
- EGIT_OVERRIDE_COMMIT_DATE_${NAME} -- to request last commit older than
the specified date.
If I do:Those shod work for you. You need to override the repo URI. If you want particular branch from it, override that too the same way you've done it in the first post.
Code: Select all
EGIT_OVERRIDE_REPO_DESULTORY_UGRD="https://github.com/linuxandos2/ugrd" emerge ugrd -1Code: Select all
>>> Unpacking source...
* Repository id: desultory_ugrd.git
* Using EGIT_OVERRIDE_REPO_DESULTORY_UGRD=https://github.com/linuxandos2/ugrd
* No support will be provided.
* Fetching https://github.com/linuxandos2/ugrd ...
git fetch https://github.com/linuxandos2/ugrd +HEAD:refs/git-r3/HEAD
From https://github.com/linuxandos2/ugrdCode: Select all
EGIT_OVERIDE_REPO_DESULTORY_UGRD="https://github.com/linuxandos2/ugrd" EGIT_OVERRIDE_BRANCH_DESULTORY_UGRD=resume emerge ugrd -1Code: Select all
>>> Emerging (1 of 1) sys-kernel/ugrd-9999::gentoo
>>> Unpacking source...
* Repository id: desultory_ugrd.git
* Using EGIT_OVERRIDE_BRANCH_DESULTORY_UGRD=resume
* No support will be provided.
* Fetching https://github.com/desultory/ugrd ...
git fetch https://github.com/desultory/ugrd +refs/heads/resume:refs/heads/resume
git symbolic-ref refs/git-r3/sys-kernel/ugrd/0/__main__ refs/heads/resume
* Checking out https://github.com/desultory/ugrd to /var/tmp/portage/sys-kernel/ugrd-9999/work/ugrd-9999 ...
git checkout --quiet resumeCode: Select all
EGIT_OVERIDE_REPO_DESULTORY_UGRD="https://github.com/linuxandos2/ugrd" EGIT_OVERRIDE_BRANCH_LINUXANDOS2_UGRD=resume emerge ugrd -1Code: Select all
>>> Emerging (1 of 1) sys-kernel/ugrd-9999::gentoo
>>> Unpacking source...
* Repository id: desultory_ugrd.git
* To override fetched repository properties, use:
* EGIT_OVERRIDE_REPO_DESULTORY_UGRD
* EGIT_OVERRIDE_BRANCH_DESULTORY_UGRD
* EGIT_OVERRIDE_COMMIT_DESULTORY_UGRD
* EGIT_OVERRIDE_COMMIT_DATE_DESULTORY_UGRD
*
* Fetching https://github.com/desultory/ugrd ...
git fetch https://github.com/desultory/ugrd +HEAD:refs/git-r3/HEADI think it is because you name the "EGIT_OVERIDE_REPO_DESULTORY_UGRD" incorrectly. First missing a "R" in the word "OVERIDE" It should be "EGIT_OVERRIDE_REPO_XXXXX_UGRD. Secondly the XXXXX portion should be "LINUXANDOS2".linux_os2 wrote:If I do:Those shod work for you. You need to override the repo URI. If you want particular branch from it, override that too the same way you've done it in the first post.then main of my repository is taken.Code: Select all
EGIT_OVERRIDE_REPO_DESULTORY_UGRD="https://github.com/linuxandos2/ugrd" emerge ugrd -1
if I combine like:Code: Select all
>>> Unpacking source... * Repository id: desultory_ugrd.git * Using EGIT_OVERRIDE_REPO_DESULTORY_UGRD=https://github.com/linuxandos2/ugrd * No support will be provided. * Fetching https://github.com/linuxandos2/ugrd ... git fetch https://github.com/linuxandos2/ugrd +HEAD:refs/git-r3/HEAD From https://github.com/linuxandos2/ugrdthen the resume branch of the desultory/ugrd repository is fetched.Code: Select all
EGIT_OVERIDE_REPO_DESULTORY_UGRD="https://github.com/linuxandos2/ugrd" EGIT_OVERRIDE_BRANCH_DESULTORY_UGRD=resume emerge ugrd -1if I do this:Code: Select all
>>> Emerging (1 of 1) sys-kernel/ugrd-9999::gentoo >>> Unpacking source... * Repository id: desultory_ugrd.git * Using EGIT_OVERRIDE_BRANCH_DESULTORY_UGRD=resume * No support will be provided. * Fetching https://github.com/desultory/ugrd ... git fetch https://github.com/desultory/ugrd +refs/heads/resume:refs/heads/resume git symbolic-ref refs/git-r3/sys-kernel/ugrd/0/__main__ refs/heads/resume * Checking out https://github.com/desultory/ugrd to /var/tmp/portage/sys-kernel/ugrd-9999/work/ugrd-9999 ... git checkout --quiet resumethen interesting messages are posted:Code: Select all
EGIT_OVERIDE_REPO_DESULTORY_UGRD="https://github.com/linuxandos2/ugrd" EGIT_OVERRIDE_BRANCH_LINUXANDOS2_UGRD=resume emerge ugrd -1Also the wrong repo is fetched.Code: Select all
>>> Emerging (1 of 1) sys-kernel/ugrd-9999::gentoo >>> Unpacking source... * Repository id: desultory_ugrd.git * To override fetched repository properties, use: * EGIT_OVERRIDE_REPO_DESULTORY_UGRD * EGIT_OVERRIDE_BRANCH_DESULTORY_UGRD * EGIT_OVERRIDE_COMMIT_DESULTORY_UGRD * EGIT_OVERRIDE_COMMIT_DATE_DESULTORY_UGRD * * Fetching https://github.com/desultory/ugrd ... git fetch https://github.com/desultory/ugrd +HEAD:refs/git-r3/HEAD
silly fault of me.I think it is because you name the "EGIT_OVERIDE_REPO_DESULTORY_UGRD" incorrectly. First missing a "R" in the word "OVERIDE" It should be "EGIT_OVERRIDE_REPO_XXXXX_UGRD. Secondly the XXXXX portion should be "LINUXANDOS2".
Code: Select all
EGIT_OVERRIDE_REPO_DESULTORY_UGRD="https://github.com/linuxandos2/ugrd" EGIT_OVERRIDE_BRANCH_DESULTORY_UGRD=resume emerge ugrd -1Code: Select all
Calculating dependencies... done!
Dependency resolution took 3.70 s (backtrack: 0/20).
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) sys-kernel/ugrd-9999::gentoo
>>> Unpacking source...
* Repository id: desultory_ugrd.git
* Using EGIT_OVERRIDE_REPO_DESULTORY_UGRD=https://github.com/linuxandos2/ugrd
* Using EGIT_OVERRIDE_BRANCH_DESULTORY_UGRD=resume
* No support will be provided.
* Fetching https://github.com/linuxandos2/ugrd ...
git fetch https://github.com/linuxandos2/ugrd +refs/heads/resume:refs/heads/resume
From https://github.com/linuxandos2/ugrd
9b4363a..043f5ab resume -> resume
git symbolic-ref refs/git-r3/sys-kernel/ugrd/0/__main__ refs/heads/resume
* Checking out https://github.com/desultory/ugrd to /var/tmp/portage/sys-kernel/ugrd-9999/work/ugrd-9999 ...
git checkout --quiet resume