fix: shallow clone with source-commit if possible
Metadata
Current evaluation
Merged to resolve issue #1360 and CRAFT-4853. Optimizes shallow cloning when a source commit is available. Approved by two reviewers, passed all CI checks, and modified three files with 233 additions and 20 deletions.
Suggested action: —
No scores available.
Issue body
- [ ] Have you followed the guidelines for contributing?
- [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [ ] Have you successfully run `make lint && make test`?
- [ ] Have you added an entry to the changelog (`docs/reference/changelog.rst`)?
---
Fixes #1360.
CRAFT-4853
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged to resolve issue #1360 and CRAFT-4853. Optimizes shallow cloning when a source commit is available. Approved by two reviewers, passed all CI checks, and modified three files with 233 additions and 20 deletions. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged a fix for issue #1360 that enables shallow cloning with source-commit when available. Resolves CRAFT-4853. The change was integrated into the main branch without additional review comments. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #6067 fix: allow for deep clones with source-commit | snapcraft | merged | Merged a fix that bumps the Craft Parts dependency to enable deep clones with source-commit. Approved by two reviewers, passed CI checks, and updated two files. | |
| #1476 fix(git-source): only shallow fetch if a source-depth is provided | craft-parts | merged | Merged fix making git shallow fetch opt-in, applying only when source-depth is explicitly non-zero. Prevents unintended shallow clones that broke cherry-pick builds. Approved by three reviewers and merged to hotfix/2.28 for craft parts 2.28.0. | |
| #248 Git source: Make a shallow clone. | snapcraft | merged | Merged changes to the git source that replace full history fetches with a depth-1 shallow clone, resolving Launchpad bug #1536696. The update modifies two files and received reviewer approval. | |
| #1600 fix(git): checkout commit before updating submodules | craft-parts | merged | Merged fix resolving issue #898. Updates the git deep-clone path to checkout the target commit before initializing submodules, aligning with shallow clone behavior. Includes targeted unit tests and passes all CI checks. |