Skip to content

Commit 0e46c77

Browse files
committed
fix for bug fatal: error in object: unshallow
1 parent 03d4d63 commit 0e46c77

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/ci_fetch_deps.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ def run(title, command, check=True):
7070
"Fetch back to the start of 2021 to get commit history",
7171
f'git fetch --recurse-submodules=no --shallow-since="2021-07-01" origin {ref}',
7272
)
73+
# See https://stackoverflow.com/questions/63878612/git-fatal-error-in-object-unshallow-sha-1#comment118418373_63879454
74+
run ("Fix for bug \"fatal: error in object: unshallow\"", "git repack -d")
7375
run("Init submodules", "git submodule init")
7476
run("Submodule status", "git submodule status")
7577

0 commit comments

Comments
 (0)