Repair `stg log` with patches from subdir
commitd2dc177112073cd6da7ea746f216572b091a37c0
authorPeter Grayson <pete@jpgrayson.net>
Mon, 21 Dec 2020 21:00:43 +0000 (21 16:00 -0500)
committerPeter Grayson <pete@jpgrayson.net>
Mon, 21 Dec 2020 21:03:01 +0000 (21 16:03 -0500)
treea3e3dae26c6d68c34c6d32f8d9420cab94f299f6
parente4465cae99a84ed6063b5f5be9368abcb6faa00e
Repair `stg log` with patches from subdir

If `stg log` was run from a worktree subdir (i.e. not from the root), and
if patches were provided on the command line, nothing would be printed.
This is due to the patch names being mapped to pathlimits to the underlying
`git log` (or `gitk`) commands.

This is resolved by using Repository.run(), which takes care to operate
from the root, instead of plain Run, which runs from the current directory.

Signed-off-by: Peter Grayson <pete@jpgrayson.net>
stgit/commands/log.py
t/t0009-log.sh