Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--git does nothing if git config file has a multi-line value #1216

Open
haizaar opened this issue Jul 12, 2023 · 6 comments
Open

--git does nothing if git config file has a multi-line value #1216

haizaar opened this issue Jul 12, 2023 · 6 comments

Comments

@haizaar
Copy link

haizaar commented Jul 12, 2023

I'm using exa v0.10.1 with git on NixOS 23.05 amd64:

❯ exa -v
exa - list files on the command-line
v0.10.1 [+git]
https://the.exa.website/

However it doesn't display any git statuses. Running strace I can see it inspects local .git dir as well as user/glocal git config files but still no output comes up. Any ideas?

image

@eggbean
Copy link

eggbean commented Jul 12, 2023

I don't think it's the nix package, as I'm using 23.05 (amd64) as well and --git works fine. The unstable channel build is built from more recent commits, so has this issue.

@haizaar
Copy link
Author

haizaar commented Jul 12, 2023

@eggbean can you please share how you invoke exa?

@eggbean
Copy link

eggbean commented Jul 12, 2023

I alias ls to this wrapper script, but it also works directly:

image

@haizaar
Copy link
Author

haizaar commented Jul 13, 2023

Thank you. I did further tests and noticed it's working when run in clean environment. So after bisecting, I found that if HOME variable is set, then git status is not shown 🤔. I'm quite puzzled now...

Any ideas besides wrapping it to drop HOME on the package level?

image

@haizaar haizaar changed the title --git does nothing despite being compiled in --git does if git config file has a multi-line value Jul 14, 2023
@haizaar haizaar changed the title --git does if git config file has a multi-line value --git does nothing if git config file has a multi-line value Jul 14, 2023
@haizaar
Copy link
Author

haizaar commented Jul 14, 2023

Turns out the problem is with the multi-line config values in git config files. My git configuration files include definitions of delta them like here and these multi line values break exa --git, despite being officially supported by git

@ariasuni
Copy link
Collaborator

This is weird, it may be an issue in libgit2… Does this happens with the active fork eza?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants