Reduces download time of `git clone` fetching just a single branch.
Metadata
Current evaluation
Rejected unmerged: Snapcraft already used --depth=1, which implied --single-branch, so the proposed flag added nothing and risked the same limitations.
Resolution: closed not a bug
Reason: Maintainer @kyrofa closed the PR because the existing depth-1 shallow clone already implied --single-branch. Discussion also noted that opting out of shallow cloning could carry the same limitations.
Evaluated by: mr-cal-bot
No scores available.
Issue body
This pull request speed up the pull time of a git repository only downloading the commits of related branch thanks to --single-branch switch of Git.
Signed-off-by: Enrique Hernández Bello ehbello@gmail.com
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed not a bug | Rejected unmerged: Snapcraft already used --depth=1, which implied --single-branch, so the proposed flag added nothing and risked the same limitations. | |
| stealth/space-bunny-alpha | — | closed not a bug | Rejected and closed unmerged: --depth=1 already implied --single-branch, while opting out of shallow clones risked the same limitations (maintainer closure, 14 Sep 2016). | |
| qwen/qwen3.6-35b-a3b | — | — | Rejected. Maintainers closed the request, noting --depth=1 is already implemented, making --single-branch redundant. The flag shares similar shallow clone limitations and offers no additional download speed benefit. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed. --depth=1 already implies --single-branch, making the change redundant. The team will handle shallow cloning via a source-shallow config option instead, superseding the proposal. |
Update history
No update history recorded yet.
Related work
-
Related To:
canonical/snapcraft#248
(confidence 99%)
Merged PR #248 introduced the depth-1 shallow Git clone that already implied single-branch fetching.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1617783 Git clone with --depth=1 loses the tags | snapcraft (launchpad) | closed | Fixed by merged PR snapcore/snapcraft#814 (commit 190463c3c): Git clones became full-depth by default, with source-depth available as an explicit opt-in. |