A file history layout is displayed showing the file history of the opened file.
Actual behavior
Steps to reproduce
mkdir /tmp/diff.bug
cd /tmp/diff.bug
echo "This is just some history." > README.md
git add .
echo "Second line" >> README.md
nvim README.md
In nvim,
:DiffviewFileHistory %
Health check
Output of :checkhealth diffview
```
diffview: require("diffview.health").check()
Checking plugin dependencies
- OK nvim-web-devicons installed.
Checking VCS tools
- The plugin requires at least one of the supported VCS tools to be valid.
- OK Git found.
- OK Git is up-to-date. (2.41.0)
- WARNING Configured `hg_cmd` is not executable: 'hg'
```
Description
After the following fix(path): Windows path madness (fixes #372) was applied, the
:DiffviewFileHistory %
no longer displays the file history for the opened file buffer.I believe it might be around this code location
Expected behavior
A file history layout is displayed showing the file history of the opened file.
Actual behavior
Steps to reproduce
In nvim,
:DiffviewFileHistory %
Health check
Output of
``` diffview: require("diffview.health").check() Checking plugin dependencies - OK nvim-web-devicons installed. Checking VCS tools - The plugin requires at least one of the supported VCS tools to be valid. - OK Git found. - OK Git is up-to-date. (2.41.0) - WARNING Configured `hg_cmd` is not executable: 'hg' ```:checkhealth diffview
Log info
Relevant info from
``` [INFO 2023-06-09 13:11:15.497 -0500] ...local/share/nvim/lazy/diffview.nvim/lua/diffview/lib.lua:74: [command call] :DiffviewFileHistory % [ERROR 2023-06-09 13:11:15.554 -0500] ...local/share/nvim/lazy/diffview.nvim/lua/diffview/job.lua:327: Job exited with a non-zero exit code: 128 [ERROR 2023-06-09 13:11:15.554 -0500] ...azy/diffview.nvim/lua/diffview/vcs/adapters/git/init.lua:672: [job-info] Exit code: 128 [ERROR 2023-06-09 13:11:15.554 -0500] ...azy/diffview.nvim/lua/diffview/vcs/adapters/git/init.lua:672: [cmd] git 'ls-files' '--' '/README.md' [ERROR 2023-06-09 13:11:15.554 -0500] ...azy/diffview.nvim/lua/diffview/vcs/adapters/git/init.lua:672: [cwd] /private/tmp/diff.bug [ERROR 2023-06-09 13:11:15.554 -0500] ...azy/diffview.nvim/lua/diffview/vcs/adapters/git/init.lua:672: [stderr] fatal: /README.md: '/README.md' is outside repository at '/private/tmp/diff.b ug' [ERROR 2023-06-09 13:11:15.574 -0500] ...local/share/nvim/lazy/diffview.nvim/lua/diffview/job.lua:327: Job exited with a non-zero exit code: 128 [ERROR 2023-06-09 13:11:15.574 -0500] ...azy/diffview.nvim/lua/diffview/vcs/adapters/git/init.lua:709: [job-info] Exit code: 128 [ERROR 2023-06-09 13:11:15.574 -0500] ...azy/diffview.nvim/lua/diffview/vcs/adapters/git/init.lua:709: [cmd] git 'log' '--pretty=format:%H' '--name-status' '-n1' '--diff-merges=combined' '--' '/README.md' [ERROR 2023-06-09 13:11:15.574 -0500] ...azy/diffview.nvim/lua/diffview/vcs/adapters/git/init.lua:709: [cwd] /private/tmp/diff.bug [ERROR 2023-06-09 13:11:15.574 -0500] ...azy/diffview.nvim/lua/diffview/vcs/adapters/git/init.lua:709: [stderr] fatal: /README.md: '/README.md' is outside repository at '/private/tmp/diff.b ug' ```:DiffviewLog
Neovim version
Operating system and version
Darwin 21.6.0 x86_64
Minimal config