Binaries on windows does have extensions, so checking for `git` existance will fail
See original GitHub issue- Cookiecutter version: 1.7.2
- Template project url: not needed
- Python version: 3.7
- Operating System: Windows10
Description:
vcs.py code check for git existance using which(repo_type)
, which translates to which(git)
. This won’t work on windows because git
does not exist, only git.exe
does.
What I’ve run:
cookiecutter.exe git@github.com:repo/template.git
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
gitignore binary files that have no extension - Stack Overflow
Above combination will ignore all files without extension ### # Ignore ... we check the .gitignore to see if the binary is already...
Read more >Git Extensions Documentation - Read the Docs
Git Extensions is a toolkit aimed at making working with Git under Windows more intuitive. The shell extension will.
Read more >Work with large files in your Git repo - Azure - Microsoft Learn
Recommendations on how to manage large binary files in Git, Visual Studio, and Team Foundation Server.
Read more >git-add Documentation - Git
The git status command can be used to obtain a summary of which files have changes that are staged for the next commit....
Read more >Writing R Extensions - The Comprehensive R Archive Network
On some platforms (notably macOS and Windows) there are also binary packages, a zip file or tarball containing the files of an installed...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@michaeljoseph whichcraft is used conditionally only if
shutil.which
is not present, but also whichcraft has copy-pasted it’s code so it would also need change.I’ve opened https://bugs.python.org/issue40592 and we will see, I do know that it may be edge case, but it’s confusing that windows has no problem finding binaries when cc has 😃
merged to 3.8 and up 😃