From: "Patrik Hägglund" <patrik.h.hagglund@gmail.com>
To: git@vger.kernel.org
Subject: clone (single) commit id?
Date: Thu, 17 Aug 2023 21:45:19 +0200 [thread overview]
Message-ID: <CABtpZSGcL8hkk3HA3ECtt7KeLPOhuB0n7EKN1Tg5ZHpFBE0V0A@mail.gmail.com> (raw)
In our CI setup, for reproducibility and performance reasons, I want
to be able to clone a repository with only a single given commit id
(commit hash). (Using 'git init' + 'git fetch' + 'git checkout' is
possible, but more elaborate/low-level.)
At https://lore.kernel.org/git/MN2PR12MB3616C1F2E97A18547740651DF9E29@MN2PR12MB3616.namprd12.prod.outlook.com/
it is stated that:
> Never mind, I see, feature exists but server needs to allow it. Sigh.
However, I'm not able to find this in the Git documentation. Can
someone point out how to configure this? Can this be better
documented?
/Patrik Hägglund
next reply other threads:[~2023-08-17 19:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-17 19:45 Patrik Hägglund [this message]
2023-08-17 19:56 ` clone (single) commit id? Jeff King
2023-08-17 20:20 ` Patrik Hägglund
2023-08-17 21:39 ` Jeff King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CABtpZSGcL8hkk3HA3ECtt7KeLPOhuB0n7EKN1Tg5ZHpFBE0V0A@mail.gmail.com \
--to=patrik.h.hagglund@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).