Closed docwhat closed 4 years ago
Here's a version of #106 that keeps using git checkout
instead of git switch
. 😃
Thanks!
Sorry about not updating the tests. I didn't realize you were mocking git
.
@docwhat No problem. Those tests are all really new (and a bit complicated). I don't expect contributors to update those.
I would recommend not mocking git
and instead use real git
and a known repository instead. e.g. your own repo.
That way you are testing the functionality of the code and can prevent regressions.
@docwhat Thanks for the advice. I'm aware of that problem.
I even mentioned it in the PR which added the tests (#109) and it has become painfully clear in this PR that it's not the way to go forward. :)
If git can't automatically figure out if the argument is a branch or a path, it will need to be told explicitly by using
--
:Fixes: #106