For at least one of our repositories, this patch fixes the `Unknown commit` exception. Unfortunately, thisit doesn't seem to completely fix my problem (I am still getting `Unknown commit` exceptions).solve this problem though, But it does seem to helpbut I suspect that this is due to commits that were overwritten with a `git push --force` or similar.