lsd-rs / lsd

The next gen ls command

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Panic at src/git.rs:64:60 for file names with invalid chars

SaschaWessel opened this issue · comments

  • os: Linux
  • lsd --version: lsd 1.0.0
  • echo $TERM: tmux-256color
  • echo $LS_COLORS:
  • commit: 6f8e095

Expected behavior

Don't panic.

Actual behavior

$ mkdir test
$ cd test
$ git init
$ touch $'\xee'
$ lsd
 �
$ lsd -lg
thread 'main' panicked at src/git.rs:64:60:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace