← Back to issue list

feat: use "craft.git" for git where possible

View original Github issue

Metadata

Project
craft-parts
Number
#925
Type
pull request
State
merged
Author
tigarmo
Labels
—
Created
Updated
Closed

Current evaluation

Merged in canonical/craft-parts#925 via commit 11be8c7a, preferring craft.git when available and falling back to git; fixes #900.

Resolution: closed resolved

Reason: PR #925 was approved and merged as commit 11be8c7a. Its implementation uses craft.git when available and otherwise falls back to git, resolving #900.

Evaluated by: mr-cal-bot

No scores available.

Issue body

If "craft.git" is available on the PATH, use it. Otherwise, fallback to "git". Fixes #900 - [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? -----

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged in canonical/craft-parts#925 via commit 11be8c7a, preferring craft.git when available and falling back to git; fixes #900.
stealth/space-bunny-alpha — closed resolved Merged via commit 11be8c7a: added craft_parts/utils/git.py get_git_command() preferring craft.git (via shutil.which) with git fallback; shipped in 2.2.0 changelog. Closes #900.
stealth/space-bunny-alpha — closed resolved Merged canonical/craft-parts#925 (commit 11be8c7a), adding craft.git-first Git execution with a git fallback and fixing #900.
qwen/qwen3.6-35b-a3b — — Merged a feature prioritizing craft.git over system git when available, with a fallback to git. Approved by two reviewers, this resolves issue #900 with 93 additions and 11 deletions across four files.
qwen3.6-35b-a3b-mtp-q6 — — Merged a feature prioritizing craft.git when available on the PATH, with a fallback to standard git. Resolves issue #900.

Update history

No update history recorded yet.

Related work

  • Related To: canonical/craft-parts#900 (confidence 100%)

    PR #925 explicitly fixes this issue and adds the requested craft.git preference.

Related issues

Issue Project State Summary Similarity
#900 use `craft.git` for git operation instead of relying on build-package craft-parts closed Git operations now prefer craft.git and fall back to system git. Implemented by merged PR #925 in commit 11be8c7a and released in craft-parts 2.2.0.
82%
#3993 dependencies: update craft-parts to 1.15.2 snapcraft merged Merged in commit 0cc7f3fe4, updating craft-parts to 1.15.2 so Git sources accept git+ssh:// URLs.
73%
#576 feat: extend craft_application.git module craft-application merged PR #576 merged, extending GitRepo with remote configuration, commit checks, last-commit lookup, fetch, and craft.git integration; Ruff follow-up #580 was also merged.
72%
#756 feat(snap): add git as craft.git to rockcraft rockcraft merged Merged PR canonical/rockcraft#756 added git to the rockcraft snap as craft.git, enabling Craft libraries to perform Git-based operations.
71%
#1024 feat: allow short commit hashes craft-parts merged Merged in canonical/craft-parts#1024 (commit 8f544241); source-commit now accepts abbreviated hashes, fixing #1008 and shipping in 2.7.0.
70%