craft_parts.utils.git module

Helpers to use git.

craft_parts.utils.git.get_git_command()[source]

Get the git command to use.

This function will prefer the “craft.git” binary if available on the system, returning its full path. Otherwise, it will always return “git”, without checking for availability.

Return type:

str