mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Give users a hint when they try to build from a source tarball
This commit is contained in:
parent
ab3a37ff71
commit
afa39e7d96
1 changed files with 2 additions and 1 deletions
|
@ -165,7 +165,8 @@ fn get_buildhash() -> String {
|
|||
.args(["rev-parse", "--short=8", "HEAD"])
|
||||
.output()
|
||||
.expect("git");
|
||||
assert!(output.status.success(), "git failed");
|
||||
assert!(output.status.success(),
|
||||
"Invoking 'git' failed. Make sure you're building from a clone of the git repo, and that 'git' is installed.");
|
||||
String::from_utf8(output.stdout).unwrap().trim().into()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue