You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
build: fall back to rev-parse HEAD when git describe fails
Apparently `cargo install` clones the git repo in a way that doesn't
fetch tags, thus `git describe` can't do anything useful and we don't
get a revision at all in the `rg --version` output.
Work around this by falling back to `git rev-parse --short=10 HEAD` if
`git describe` returns nothing, like upstream ripgrep.
0 commit comments