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

Bug 349220

Summary: git.eclass: git fetch may need "-t" option
Product: Gentoo Linux Reporter: Naohiro Aota <naota>
Component: EclassesAssignee: Tomáš Chvátal (RETIRED) <scarabeus>
Status: RESOLVED FIXED    
Severity: enhancement CC: dberkholz
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Naohiro Aota gentoo-dev 2010-12-20 17:45:05 UTC
Please see git-fetch(1) below

       -t, --tags
           Most of the tags are fetched automatically as branch heads are downloaded, but tags that do not point at objects reachable from the branch heads that are being tracked will not be fetched by this
           mechanism. This flag lets all tags and their associated objects be downloaded.

Thus, if a user doesn't update their git repository for some weeks or months and then updating the repository may sometime cause "missing tags"
If a ebuild developer specify such "missing tag" as EGIT_COMMIT,  git_src_unpack fail to obtain the source files.

Reproducible: Always
Comment 1 Tomáš Chvátal (RETIRED) gentoo-dev 2011-04-20 21:51:44 UTC
Fixed in git-2.eclass git.eclass is obsoleted by it so just migrate your ebuilds.