{"id":107,"date":"2012-02-05T21:29:29","date_gmt":"2012-02-05T13:29:29","guid":{"rendered":"http:\/\/blogs.gentoo.org\/alexxy\/2012\/02\/05\/git-commit-signing-in-kde-overlay\/"},"modified":"2012-02-05T21:44:45","modified_gmt":"2012-02-05T17:44:45","slug":"git-commit-signing-in-kde-overlay","status":"publish","type":"post","link":"https:\/\/blogs.gentoo.org\/alexxy\/2012\/02\/05\/git-commit-signing-in-kde-overlay\/","title":{"rendered":"Git commit signing in kde overlay"},"content":{"rendered":"<p>Recently with 1.7.9 release git gets support for<a href=\"http:\/\/git.kernel.org\/?p=git\/git.git;a=blob;f=Documentation\/RelNotes\/1.7.9.txt;h=95320aad5dd2414efeacbc088b34e45c4ac51bbf;hb=828ea97de486c1693d6e4f2c7347acb50235a85d\"> git commit signing<\/a>. This was one of the last show stoppers to migrate gentoo-x86 tree from cvs to git. In recent portage versions like\u00a02.1.10.45 and\u00a02.2.0_alpha85 support for git gpg signed commits was also added. So in kde overlay we decided to test with\u00a0feature with thin manifests.<\/p>\n<p>New repoman can use git gpg signed commits if you do the following thing<\/p>\n<ol>\n<li>Enable special tag in metadata\/layout.conf<br \/>\n<code>sign-commits = true<\/code><\/li>\n<li>Install git &gt;=1.7.9<\/li>\n<li>Configure your gpg sign key for git via<br \/>\n<code>git config --global user.signingkey $KEYID<\/code><\/li>\n<\/ol>\n<p>After first commit you can chek that gpg signature was added to special field in commit via<br \/>\n<code><br \/>\ngit log --show-signature<br \/>\n<\/code><br \/>\nIt will look like this<br \/>\n<code><\/code><\/p>\n<p>commit 9b3cafc7efb2c17b0f2baffae530196014967921<br \/>\ngpg: enabled debug flags: memstat<br \/>\ngpg: Signature made Sun Feb 5 21:06:06 2012 MSK using RSA key ID F82F92E6<br \/>\ngpg: Good signature from &#8220;Alexey Shvetsov &#8221;<br \/>\ngpg: aka &#8220;Alexey &#8216;alexxy&#8217; Shvetsov &#8221;<br \/>\ngpg: aka &#8220;Alexey &#8216;alexxy&#8217; Shvetsov &#8221;<br \/>\ngpg: aka &#8220;Alexey Shvetsov &#8221;<br \/>\nrandom usage: poolsize=600 mixed=0 polls=0\/0 added=0\/0<br \/>\noutmix=0 getlvl1=0\/0 getlvl2=0\/0<br \/>\nsecmem usage: 0\/32768 bytes in 0 blocks<br \/>\nAuthor: Alexey Shvetsov<br \/>\nDate: Sun Feb 5 21:05:48 2012 +0400<\/p>\n<p>[metadata] Enable git signed commits by default<\/p>\n<p>Signed-off-by: Alexey Shvetsov<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently with 1.7.9 release git gets support for git commit signing. This was one of the last show stoppers to migrate gentoo-x86 tree from cvs to git. In recent portage versions like\u00a02.1.10.45 and\u00a02.2.0_alpha85 support for git gpg signed commits was &hellip; <a href=\"https:\/\/blogs.gentoo.org\/alexxy\/2012\/02\/05\/git-commit-signing-in-kde-overlay\/\"><\/p>\n<div class=\"nav-next\">Continue reading<\/div>\n<p><\/a><\/p>\n","protected":false},"author":134,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[8,27],"tags":[31,32],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/blogs.gentoo.org\/alexxy\/wp-json\/wp\/v2\/posts\/107"}],"collection":[{"href":"https:\/\/blogs.gentoo.org\/alexxy\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.gentoo.org\/alexxy\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.gentoo.org\/alexxy\/wp-json\/wp\/v2\/users\/134"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.gentoo.org\/alexxy\/wp-json\/wp\/v2\/comments?post=107"}],"version-history":[{"count":4,"href":"https:\/\/blogs.gentoo.org\/alexxy\/wp-json\/wp\/v2\/posts\/107\/revisions"}],"predecessor-version":[{"id":111,"href":"https:\/\/blogs.gentoo.org\/alexxy\/wp-json\/wp\/v2\/posts\/107\/revisions\/111"}],"wp:attachment":[{"href":"https:\/\/blogs.gentoo.org\/alexxy\/wp-json\/wp\/v2\/media?parent=107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/alexxy\/wp-json\/wp\/v2\/categories?post=107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/alexxy\/wp-json\/wp\/v2\/tags?post=107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}