aboutsummaryrefslogtreecommitdiffstats
path: root/t/104-works-outside-the-repo-root.t
AgeCommit message (Collapse)Author
2020-10-17t/104-works-outside-the-repo-root.t: Remove subdir in teardownTeddy Wing
I wasn't clearning up the "subdir" directory created in this test. Tried adding a new test that used the same subdirectory name, which failed to create the directory because it was already created here.
2020-10-07main(): Open repository even if PWD is a subdirectoryTeddy Wing
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.