Commit 2e39c27
authored
Fix error in non-home paths (#1129)
Before it would fail in paths outside the home directory with
```
× Pipeline empty.
╭─[/home/filipp/.config/nushell/panache-git.nu:32:76]
31 │ let current_dir_relative_to_home = (
32 │ do --ignore-errors { $current_dir | path relative-to $nu.home-path } | str join
· ────┬───
· ╰── no input value was piped in
33 │ )
╰────
```1 parent 6fe7713 commit 2e39c27
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
0 commit comments