fix for bug fatal: error in object: unshallow

This commit is contained in:
MicroDev 2023-01-07 17:52:33 +05:30
parent 03d4d63ab5
commit 0e46c77c14
No known key found for this signature in database
GPG Key ID: 2C0867BE60967730

View File

@ -70,6 +70,8 @@ run(
"Fetch back to the start of 2021 to get commit history", "Fetch back to the start of 2021 to get commit history",
f'git fetch --recurse-submodules=no --shallow-since="2021-07-01" origin {ref}', f'git fetch --recurse-submodules=no --shallow-since="2021-07-01" origin {ref}',
) )
# See https://stackoverflow.com/questions/63878612/git-fatal-error-in-object-unshallow-sha-1#comment118418373_63879454
run ("Fix for bug \"fatal: error in object: unshallow\"", "git repack -d")
run("Init submodules", "git submodule init") run("Init submodules", "git submodule init")
run("Submodule status", "git submodule status") run("Submodule status", "git submodule status")