@@ -144,22 +144,29 @@ For instance, if you were working with
144
144
145
145
.. _git-lfs-historical :
146
146
147
- Checking out Historical Commits
147
+ Checking out historical commits
148
148
===============================
149
149
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
152
159
``git-lfs.lsst.cloud `` rather than ``git-lfs.lsst.codes ``, and the
153
160
checkout will reset ``.lfsconfig `` to its old value. What you will need
154
161
to do in that case is the following.
155
162
156
163
#. 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.
158
165
#. 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> ``.
163
170
#. Finally, execute ``git lfs fetch `` to download the LFS objects.
164
171
165
172
.. _git-lfs-using :
0 commit comments