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

Copier fails if git is not installed #1696

Open
yajo opened this issue Jul 11, 2024 · 0 comments
Open

Copier fails if git is not installed #1696

yajo opened this issue Jul 11, 2024 · 0 comments

Comments

@yajo
Copy link
Member

yajo commented Jul 11, 2024

Executive summary
Currently copier won't work if git is not installed, even if you just want to use it to render and copy files from some local folder to another, where git is never involved in the process.

Would it be possible to remove git-dependence?

Details
Copier wants to find out whether the source directory has anything to do with git, and calls the git-executable to check this. But if it is not found then it fails.
My suggestion is to make a little change: when copier is unable to find git-executable then simply assume that source is not under git and proceed.
I tried this approach (modified is_git_bundle to return False if it fails to find git) and it works perfectly.

Originally posted by @kefirbandi in #1634

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