Skip to content
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

sl fails on shallow checkouts #998

Open
stepancheg opened this issue Dec 19, 2024 · 0 comments
Open

sl fails on shallow checkouts #998

stepancheg opened this issue Dec 19, 2024 · 0 comments

Comments

@stepancheg
Copy link
Contributor

Repro

$ git clone https://github.com/protocolbuffers/protobuf --depth 1
...
$ sl
reposetup failed in extension dirsync: When constructing alloc::boxed::Box<dyn commits_trait::DagCommits + core::marker::Send> from dyn storemodel::StoreInfo, "10-git-commits" reported error

Caused by:
    0: resolving 0fba21ab2187d1f9cb64041ec7c19c5286821049 to git commit
    1: object not found - no match for id (0fba21ab2187d1f9cb64041ec7c19c5286821049); class=Odb (9); code=NotFound (-3)
abort: When constructing alloc::boxed::Box<dyn commits_trait::DagCommits + core::marker::Send> from dyn storemodel::StoreInfo, "10-git-commits" reported error

Caused by:
    0: resolving 0fba21ab2187d1f9cb64041ec7c19c5286821049 to git commit
    1: object not found - no match for id (0fba21ab2187d1f9cb64041ec7c19c5286821049); class=Odb (9); code=NotFound (-3)
$ git fetch --unshallow
...
$ sl
@  21e9aa6cac  Yesterday at 22:04  tonyliaoss  origin/main
│  Add back UPB test coverage that was undone from test migration.
~

sl does not necessary have to support shallow clones, but it could provide a nice message with suggestion to git fetch --unshallow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant