summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--mullvad-problem-report/build.rs14
-rw-r--r--mullvad-problem-report/src/metadata.rs6
2 files changed, 1 insertions, 19 deletions
diff --git a/mullvad-problem-report/build.rs b/mullvad-problem-report/build.rs
index 7dfd55b2c3..e806ed4361 100644
--- a/mullvad-problem-report/build.rs
+++ b/mullvad-problem-report/build.rs
@@ -1,7 +1,6 @@
use std::env;
use std::fs;
use std::path::PathBuf;
-use std::process::Command;
#[cfg(windows)]
extern crate winapi;
@@ -13,7 +12,6 @@ fn main() {
let product_version = env!("CARGO_PKG_VERSION").replacen(".0", "", 1);
fs::write(out_dir.join("product-version.txt"), &product_version).unwrap();
- fs::write(out_dir.join("git-commit-date.txt"), commit_date()).unwrap();
#[cfg(windows)]
{
@@ -27,15 +25,3 @@ fn main() {
res.compile().expect("Unable to generate windows resources");
}
}
-
-
-fn commit_date() -> String {
- let output = Command::new("git")
- .args(&["log", "-1", "--date=short", "--pretty=format:%cd"])
- .output()
- .expect("Unable to get git commit date");
- ::std::str::from_utf8(&output.stdout)
- .unwrap()
- .trim()
- .to_owned()
-}
diff --git a/mullvad-problem-report/src/metadata.rs b/mullvad-problem-report/src/metadata.rs
index d176d66c45..cddbe57892 100644
--- a/mullvad-problem-report/src/metadata.rs
+++ b/mullvad-problem-report/src/metadata.rs
@@ -2,11 +2,7 @@ use std::collections::HashMap;
use std::process::Command;
use uuid;
-pub const PRODUCT_VERSION: &str = concat!(
- include_str!(concat!(env!("OUT_DIR"), "/product-version.txt")),
- " ",
- include_str!(concat!(env!("OUT_DIR"), "/git-commit-date.txt"))
-);
+pub const PRODUCT_VERSION: &str = include_str!(concat!(env!("OUT_DIR"), "/product-version.txt"));
pub fn collect() -> HashMap<String, String> {
let mut metadata = HashMap::new();