Skip to content

Commit 641b432

Browse files
committedNov 16, 2024
Add a hidden skiplist file for git fsck and a note about using it
1 parent 8a090f2 commit 641b432

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
 

‎.git-fsck-skiplist

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
eb6fb9bef41871323404b2c19e23fb5550ef04c9

‎README.md

+15
Original file line numberDiff line numberDiff line change
@@ -177,3 +177,18 @@ However, note that this is pre-release software, so we will not usually be provi
177177
# Contributing
178178

179179
See [CONTRIBUTING](https://github.com/intersectmbo/cardano-ledger/blob/master/CONTRIBUTING.md).
180+
181+
# Using `git fsck`
182+
183+
There's some ancient history in the repo that causes `git fsck` version `2.44.0` or later to report errors when running semantic checks on an old version of the `.gitmodules` file.
184+
185+
This can be overcome by running `git config fsck.skipList .git-fsck-skiplist` once, sometime after cloning.
186+
187+
However, the problem prevents cloning if you have `transfer.fsckObjects` enabled in your global git configuration. You can overcome this by downloading the skiplist file before you clone and then specifying it in a config option to the `clone` command:
188+
189+
```shell
190+
$ curl -sSLO https://raw.githubusercontent.com/IntersectMBO/cardano-ledger/refs/heads/master/.git-fsck-skiplist
191+
$ git clone -c fetch.fsck.skipList=.git-fsck-skiplist ...
192+
...
193+
$ rm .git-fsck-skiplist
194+
```

0 commit comments

Comments
 (0)