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

Panic in src/status.rs:307:34 when there are no changes in the repo #9

Closed
poliorcetics opened this issue Aug 25, 2022 · 3 comments
Closed

Comments

@poliorcetics
Copy link

poliorcetics commented Aug 25, 2022

Message:

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error(Error { input: "Sur la branche nu-ansi-term", code: Tag })', /Users/user/.local/share/cargo/registry/src/github.com-1ecc6299db9ec823/gex-0.3.2/src/status.rs:307:34

With RUST_BACKTRACE=1:

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error(Error { input: "Sur la branche nu-ansi-term", code: Tag })', /Users/alexis/.local/share/cargo/registry/src/github.com-1ecc6299db9ec823/gex-0.3.2/src/status.rs:307:34
stack backtrace:
   0: rust_begin_unwind
             at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/std/src/panicking.rs:584:5
   1: core::panicking::panic_fmt
             at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/core/src/panicking.rs:142:14
   2: core::result::unwrap_failed
             at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/core/src/result.rs:1805:5
   3: gex::status::Status::fetch
   4: gex::status::Status::new
   5: gex::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Meta

  • gex --version: gex 0.3.2`
  • OS: macOS 12.5.1
@Piturnah
Copy link
Owner

Thank you very much for opening this issue!
Closing as this appears to be a duplicate of #7

I'm taking a few days' break, but in the meantime, you should be able to use gex with $LANG=en_GB or en_US

@poliorcetics
Copy link
Author

Ah sorry for the duplicate, I read the title but didn't think it was the same, should have searched a little more

@Piturnah
Copy link
Owner

Don't worry about it! If you're unsure I'd much rather you open an issue.

Piturnah added a commit that referenced this issue Aug 30, 2022
This should resolve locale issues, such as #7 and #9.

TODO: When `head().is_branch()` is false
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

2 participants