Skip to content

Commit c1eb74b

Browse files
committed
Reword historical commit instructions
1 parent b0e11f8 commit c1eb74b

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

git/git-lfs.rst

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -144,22 +144,29 @@ For instance, if you were working with
144144
145145
.. _git-lfs-historical:
146146

147-
Checking out Historical Commits
147+
Checking out historical commits
148148
===============================
149149

150-
If you want to check out a historical commit, you will find that the LFS
151-
object fetch fails, because only recent commits will reference
150+
If you want to check out a historical commit, you first need to know
151+
that arbitrary commits are no longer available. When we migrated from
152+
``git-lfs.lsst.codes`` to ``git-lfs.lsst.cloud`` we only migrated LFS
153+
objects that were either at the tip of the ``main`` branch or a release
154+
branch (one whose name begins with ``v`` followed by a digit), or were
155+
referenced in a Git tag.
156+
157+
If your proposed checkout meets these criteria, next you will will find
158+
that the LFS object fetch fails, because only recent commits reference
152159
``git-lfs.lsst.cloud`` rather than ``git-lfs.lsst.codes``, and the
153160
checkout will reset ``.lfsconfig`` to its old value. What you will need
154161
to do in that case is the following.
155162

156163
#. Attempt the checkout as normal. It will fail when it starts to
157-
smudge any files that differ from the previous checkout.
164+
smudge any files that differ from the previous checkout.
158165
#. Next, you must edit ``.lfsconfig`` to reference
159-
``https://git.lfs-rw.lsst.cloud/<org>/<repo>`` rather than
160-
``https://git-lfs.lsst.codes``; you can do this either by simply editing
161-
the file, or with ``git config lfs.url
162-
https://git-lfs-rw.lsst.cloud/<org>/<repo>``.
166+
``https://git.lfs-rw.lsst.cloud/<org>/<repo>`` rather than
167+
``https://git-lfs.lsst.codes``; you can do this either by simply editing
168+
the file, or with ``git config lfs.url
169+
https://git-lfs-rw.lsst.cloud/<org>/<repo>``.
163170
#. Finally, execute ``git lfs fetch`` to download the LFS objects.
164171

165172
.. _git-lfs-using:

0 commit comments

Comments
 (0)