helix/helix-term
Michael Davis a8cf0c6b90
filter git revision on git command success exit code (#1674)
The unwrap (or '.ok()' rather) triggers for some errors but not
negative status codes. In the case where helix is being packaged
in an empty git repository, the existing mechanism will fail because

    git init
    git rev-parse HEAD

gives a negative exit code and prints to stderr

    stderr: "fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree....

with a stdout of "HEAD\n" (too short to slice with [..8]).
2022-02-18 13:05:12 +09:00
..
src Fix bug when launching hx file.rs:10 (#1676) 2022-02-18 12:13:02 +09:00
.gitignore Initial import. 2020-05-20 18:14:51 +09:00
build.rs filter git revision on git command success exit code (#1674) 2022-02-18 13:05:12 +09:00
Cargo.toml Merge remote-tracking branch 'origin/master' into debug 2022-02-13 18:31:51 +09:00