Skip to content

Commit

Permalink
Update build.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
onur-ozkan authored Mar 2, 2023
1 parent f497d2e commit 6c5b56a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mm2src/mm2_bin_lib/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ fn mm_version() -> String {
// if there is MM_VERSION file, that means CI wants to put a tag to version
if !v_file.is_empty() {
version = format!("{}_{}", version, v_file.trim());
} else {
}
// put commit tag to the version
else {
let mut command = Command::new("git");
command.arg("log").arg("--pretty=format:%h").arg("-n1");
if let Ok(go) = command.output() {
Expand Down

0 comments on commit 6c5b56a

Please sign in to comment.