Skip to content

Commit 0d1673b

Browse files
committed
build: Check .idx and .rev files
Add new tests to verify the idx and rev files. Note that two files are being ignored, one is for a sha256 repository, which unfortunately the upstream git does not seem to support. The second ignored pack file does not have an idxfile, hence it makes no sense to verify it nor to generate a rev file for that pack file. Signed-off-by: Paulo Gomes <pjbgf@linux.com>
1 parent d9b545e commit 0d1673b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/test.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,18 @@ jobs:
3333

3434
- name: Test
3535
run: make test
36+
37+
- name: Check index files
38+
run: |
39+
ls data/pack-*.pack | \
40+
grep -v 407497645643e18a7ba56c6132603f167fe9c51c00361ee0c81d74a8f55d0ee2 | \
41+
grep -v ee4fef0ef8be5053ebae4ce75acf062ddf3031fb | \
42+
xargs -I{} git verify-pack -v {}
43+
44+
- name: Re-generate reverse index files
45+
run: |
46+
ls data/pack-*.pack | \
47+
grep -v 407497645643e18a7ba56c6132603f167fe9c51c00361ee0c81d74a8f55d0ee2 | \
48+
grep -v ee4fef0ef8be5053ebae4ce75acf062ddf3031fb | \
49+
xargs -I{} git index-pack --rev-index -v {}
50+
git diff-index --quiet HEAD --

0 commit comments

Comments
 (0)