-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jj crashes on shallow git repositories (cloned with --depth 20
)
#675
Comments
We use libgit2, which doesn't support shallow clones. I thought that meant we'd be unlikely to see support for it anytime soon, but it looks like there's actually been some recent progress on it, so that's encouraging :) |
--depth 20
.--depth 20
.
--depth 20
.--depth 20
)
Although libgit2 doesn't support shallow clones, it seems like in this case, the error message is just of a missing parent commit? We'd have to handle that even if libgit2 did support shallow clones, and could handle it right now (somehow; I guess if a parent commit is missing, we should stop iteration and say that the history is shallow?). |
@martinvonz, FYI, the PR you mentioned was merged a few months ago. |
Nice! Now someone will just have to see if it actually just works with jj or we would need to make some changes too. |
I've reproduced the issue in The above-mentioned change to |
I cloned a git repository with
git clone --depth 20
andjj
cannot handle it.For reference, this is the git repository.
Detailed error messages
The text was updated successfully, but these errors were encountered: