dandavison / delta

A syntax-highlighting pager for git, diff, grep, and blame output
https://dandavison.github.io/delta/
MIT License
22.74k stars 380 forks source link

🐛 delta fails to run (in some cases) when `git` is not installed #1593

Open calestyo opened 9 months ago

calestyo commented 9 months ago

Hey.

On a Debian unstable, with delta 0.16.5-5 and no git installed, I get this:

$ touch 1 2
$ delta 1 2
Failed to execute the command 'git': No such file or directory (os error 2)
$ delta --no-gitconfig 1 2
Failed to execute the command 'git': No such file or directory (os error 2)
$

Interestingly it does work with:

$ delta <(echo a)  <(echo b)
…

So this might be somehow related to #1584.

Cheers, Chris.