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