From f530e24ca8da618e2e3dc884df6e96e29e78fd8c Mon Sep 17 00:00:00 2001 From: Phil de Joux Date: Sun, 5 May 2024 13:29:24 -0400 Subject: [PATCH] The warning about commits is only for Git repositories --- doc/how-to-source-packages.rst | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/doc/how-to-source-packages.rst b/doc/how-to-source-packages.rst index fed78fb5d80..150f58b47f9 100644 --- a/doc/how-to-source-packages.rst +++ b/doc/how-to-source-packages.rst @@ -306,11 +306,12 @@ picked up from the source code repository instead of from Hackage. .. Warning:: - Only a commit hash pins to an exact version of the *source code*. + Only a commit hash pins to an exact version of the *source code* for Git + respositories. - - If the ``tag`` field is omitted, the latest commit on the default branch is used. - - If the ``tag`` field is a branch name then the latest commit on that branch is used. - - If the ``tag`` field is a VCS tag then the current commit that tag points to is used. + - If the ``tag`` field is omitted then the latest commit on the Git default branch is used. + - If the ``tag`` field is a Git branch name then the latest commit on that branch is used. + - If the ``tag`` field is a Git tag then the current commit that tag points to is used. *Source code* as a package publisher