diff options
author | Teddy Wing | 2020-10-07 20:56:00 +0200 |
---|---|---|
committer | Teddy Wing | 2020-10-07 20:56:00 +0200 |
commit | 255673b983a675e062eb0f3c4ea2017c47e048d1 (patch) | |
tree | af93d472742c5db70b7f79ab8215e6a2f696807e /t/100-shows-todo-comments-since-fork-point.t | |
parent | 651ad535a7890697b44a050e3150656b3782f541 (diff) | |
download | git-todo-255673b983a675e062eb0f3c4ea2017c47e048d1.tar.bz2 |
main(): Open repository even if PWD is a subdirectory
Previously, running `git todo` outside the root of the repository would
result in this error:
error: unable to open repository: could not find repository from '.'; class=Repository (6); code=NotFound (-3)
It turns out the `open()` method expects the given path to be the
repository root. Use `open_from_env()` instead, which functions more
like regular Git commands.
Diffstat (limited to 't/100-shows-todo-comments-since-fork-point.t')
0 files changed, 0 insertions, 0 deletions