opnsense-ports/devel/gitui/files/patch-build.rs
Franco Fichtner ebef374a5a */*: sync with upstream
Taken from: FreeBSD
2024-04-16 14:29:39 +02:00

24 lines
575 B
Rust

--- build.rs.orig 2024-04-15 23:07:43 UTC
+++ build.rs
@@ -1,20 +1,5 @@ fn get_git_hash() -> String {
fn get_git_hash() -> String {
- use std::process::Command;
-
- let commit = Command::new("git")
- .arg("rev-parse")
- .arg("--short")
- .arg("--verify")
- .arg("HEAD")
- .output();
- if let Ok(commit_output) = commit {
- let commit_string =
- String::from_utf8_lossy(&commit_output.stdout);
-
- return commit_string.lines().next().unwrap_or("").into();
- }
-
- panic!("Can not get git commit: {}", commit.unwrap_err());
+ return format!("n/a");
}
fn main() {