From mboxrd@z Thu Jan 1 00:00:00 1970 From: Troy Sankey Subject: [PATCH] doc: clarification for hashing git checkouts Date: Sun, 10 Jul 2016 17:54:38 -0400 Message-ID: <20160710215438.15418.98984@what> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33017) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMMgY-0001ZU-Pa for guix-devel@gnu.org; Sun, 10 Jul 2016 17:54:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bMMgV-0005q3-Mb for guix-devel@gnu.org; Sun, 10 Jul 2016 17:54:46 -0400 Received: from mail-qt0-x244.google.com ([2607:f8b0:400d:c0d::244]:33278) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMMgV-0005pt-IB for guix-devel@gnu.org; Sun, 10 Jul 2016 17:54:43 -0400 Received: by mail-qt0-x244.google.com with SMTP id j37so796250qta.0 for ; Sun, 10 Jul 2016 14:54:43 -0700 (PDT) Received: from localhost (c-73-167-118-183.hsd1.ma.comcast.net. [73.167.118.183]) by smtp.gmail.com with ESMTPSA id l129sm1258058qke.27.2016.07.10.14.54.41 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Jul 2016 14:54:42 -0700 (PDT) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel When hashing git checkouts of packages, packagers must first remove the .git directory. This commit adds this clarification to the "Invoking guix hash" page in the documentation. --- doc/guix.texi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/guix.texi b/doc/guix.texi index c9d9bd8..f9fe85a 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -4533,6 +4533,9 @@ hash (@pxref{Invoking guix archive}). @c FIXME: Replace xref above with xref to an ``Archive'' section when @c it exists. = +When hashing a git checkout, be sure to remove the git configuration +directory (@code{rm -r .git}) as it will erroneously impact the hash. + @end table = @node Invoking guix import -- = 2.1.4