Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 214686 - git.eclass should export GIT_DIR to absolute path
Summary: git.eclass should export GIT_DIR to absolute path
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Fernando J. Pereda (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-25 12:47 UTC by SpanKY
Modified: 2008-06-16 11:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2008-03-25 12:47:01 UTC
if GIT_DIR was properly set, we could do some git operations from inside the ebuild, like querying the repo to glean out the current head commit so that it could be stored somewhere ...

otherwise we need to do:
git --git-dir=${EGIT_STORE_DIR}/${EGIT_PROJECT} ...
Comment 1 Fernando J. Pereda (RETIRED) gentoo-dev 2008-06-07 15:39:41 UTC
I'm going to go with a different approach here since I'm going to move the git- commands out of PATH sometime soon.

I'll add a 'git_cmd' that will execute a proper git command (by passing --git-dir and other stuff we might need in future).

- ferdy
Comment 2 Fernando J. Pereda (RETIRED) gentoo-dev 2008-06-16 11:33:58 UTC
In the end, zlin made git.eclass export GIT_DIR to an absolute path.

Thanks to both of you.

- ferdy