Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't rely on system git executable #16

Open
doshitan opened this issue Jan 28, 2025 · 0 comments
Open

Don't rely on system git executable #16

doshitan opened this issue Jan 28, 2025 · 0 comments

Comments

@doshitan
Copy link
Contributor

Context

The project currently has a bunch of utilities for interacting with Git in nava/platform/util/git.py. These call the git executable in a subprocess. This requires users have a particular version of git available on their system to use the tool. We can relax that requirement, and possibly improve some performance, by switching to library for interactions with Git.

Although ultimately copier still requires the git executable at the moment, this tool may eventually have useful functionality that interacts with git outside of Copier. In addition to not having to re-invent a Python interface to Git operations.

Implementation

Probably with dulwich (https://github.com/jelmer/dulwich)

Possibly with pytgit2 (https://www.pygit2.org/index.html)

Copier has a similar open issue, though there's not much interest in making the switch there because (sensibly) if someone is using a Git template, they almost certainly have git installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant