mufeedvh / code2prompt

A CLI tool to convert your codebase into a single LLM prompt with source tree, prompt templating, and token counting.
MIT License
1.45k stars 77 forks source link

fix git_tests: explicit git init to master, error handling #32

Closed perstarkse closed 3 weeks ago

perstarkse commented 1 month ago

If the user has set another defaultBranch in git than master, the tests will fail. This change will initialize the repo to master. Also improved the error handling somewhat so the tests dont exit on failure.

mufeedvh commented 3 weeks ago

Thank you so much @perstarkse for the PR! LGTM, merging now! ❤️ 🙌