← Back to issue list

use `craft.git` for git operation instead of relying on build-package

View original Github issue

Metadata

Project
craft-parts
Number
#900
Type
issue
State
closed
Author
dariuszd21
Labels
—
Created
Updated
Closed

Current evaluation

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.

Resolution: closed resolved

Reason: PR #925 was merged as commit 11be8c7a, adding a selector that uses craft.git when available and system git otherwise. The 2.2.0 changelog confirms the behavior was released.

Evaluated by: mr-cal-bot

No scores available.

Issue body

### What needs to get done use `craftgit`, where git client is run as a subprocess with the fallback to the `git` to ensure backward compatibility. ### Why it needs to get done our snap package will bundle with `craftgit` which is git client packaged specifically for the craft libraries use. we should use it in the places where we really on the system git and fallback to the git if it's not a snap or the binary is not available.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved 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.
stealth/space-bunny-alpha — closed resolved Git operations now prefer craft.git and fall back to system git via PR #925, resolving the request.
stealth/space-bunny-alpha — closed resolved Implemented in #925 via commit 11be8c7a: Git operations now prefer craft.git and fall back to system git, resolving #900.
qwen/qwen3.6-35b-a3b — — Closed without implementation. The craftgit migration was abandoned and tracked internally via Jira ticket CRAFT-3664, with no pull request or code changes submitted.
qwen/qwen3.6-35b-a3b — — Closed without implementation or resolution. No pull requests or discussion were added. The request to use craftgit with a system git fallback remains unaddressed and appears abandoned.
qwen/qwen3.6-35b-a3b — — Closed without implementation or linked pull request. The request appears abandoned or deferred pending further development.
qwen3.6-35b-a3b-mtp-q6 — — Closed without implementation. The request to switch to craftgit with a system git fallback was synced to internal tracking (CRAFT-3664) but received no code changes or resolution.

Update history

No update history recorded yet.

Related work

Related issues

Issue Project State Summary Similarity
#925 feat: use "craft.git" for git where possible craft-parts merged Merged in canonical/craft-parts#925 via commit 11be8c7a, preferring craft.git when available and falling back to git; fixes #900.
82%