Skip to content
Snippets Groups Projects
Commit 935c4fb1bbfc authored by David M. Carr's avatar David M. Carr
Browse files

tests: let git init create directories when applicable

It's functionally equivalent to create a directory, cd into it, git init, and
cd out of the directory, or simply git init with the directory specified.

In several cases, we were doing the former without performing any other
operations in the git repo, which just made the test unneccesarily complex.
Even in the case where we still want to cd into the directory, calling git
init with the directory name eliminates the need for a separate mkdir command.

This changeset converts the former approach to the latter with the goal of
increasing the readability of the tests.

Thanks to Felipe Contreras for the patch which this was based on.
parent daf3e44a4aa9
No related branches found
No related tags found
No related merge requests found
Showing
with 43 additions and 96 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment