Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 557366 - Include the commitid in the gentoo rsync tree
Summary: Include the commitid in the gentoo rsync tree
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Git (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Infrastructure
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-12 13:40 UTC by Jason Zaman
Modified: 2021-08-26 17:50 UTC (History)
2 users (show)

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 Jason Zaman gentoo-dev 2015-08-12 13:40:39 UTC
Is it possible to add a small file in /metadata/ during the metadata generation step so we have a way to know exactly which commitid the rsync tree is based off.

the following should work:
git rev-parse HEAD > metadata/git-commit-id
Comment 1 Ulrich Müller gentoo-dev 2015-08-13 09:20:22 UTC
We should also include date and committer of the last change, just to be sure that we are compliant with the GPL. Maybe this should go into a separate file like metadata/last-change, in order to keep the git-commit-id file machine readable.

The output of:

   git log -1 --date=iso --format=fuller

could be used for the last-change file.

See previous discussion: https://archives.gentoo.org/gentoo-licenses/message/f42a0ba91e7ca972a1cccbeaa46fd2bd
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-08-13 09:53:06 UTC
How about 'git cat-file -p HEAD' -- this should be the machine-readable git format.
Comment 3 Ulrich Müller gentoo-dev 2015-08-13 11:16:10 UTC
(In reply to Michał Górny from comment #2)
> How about 'git cat-file -p HEAD' -- this should be the machine-readable git
> format.

That doesn't include the commit id, and the date format ("1439455101 +0200") isn't human-readable.
Comment 4 Alec Warner (RETIRED) archtester gentoo-dev Security 2021-08-26 17:50:40 UTC
We don't plan on doing this afaik.

-A