Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 395245

Summary: git-2.eclass doesn't switch to the right branch
Product: Gentoo Linux Reporter: Giorgos Tsiapaliwkas <terietor>
Component: EclassesAssignee: Donnie Berkholz (RETIRED) <dberkholz>
Status: RESOLVED INVALID    
Severity: major CC: mgorny, terietor
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Giorgos Tsiapaliwkas 2011-12-19 08:11:23 UTC
Hello,

the git2-class doesn't change into the branch that is specified by the ebuild.

For example everytime that i install kdelibs-9999 it is supposed that i will have the branch KDE/4.7, but instead i have the branch master..

Reproducible: Always

Steps to Reproduce:
1.add this "EGIT_NONBARE=1 # This one sets the git-2 eclass to clone non-bare repos" to your make.conf 
2.emerge =kdelibs-9999
3.cd /usr/portage/distfiles/egit-src/kdelibs
5.git branch
Actual Results:  
$ git branch
* master

Expected Results:  
$ git branch
* KDE/4.7
  master
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2011-12-23 14:32:42 UTC
git-2 switches branches in the working copy used for the build (one in ${PORTAGE_TMPDIR}). You're heavily misusing EGIT_NONBARE.