Compare commits
No commits in common. "99807b9722501c9c171e4436f13247da95a45305" and "8d5d7395689af3ffdd6d699f5bd2d40bd9ec05c8" have entirely different histories.
99807b9722
...
8d5d739568
|
@ -7,7 +7,6 @@ services:
|
|||
networks:
|
||||
bfile:
|
||||
volumes:
|
||||
- './.git:/opt/code/.git'
|
||||
- './filed:/opt/code'
|
||||
- './filed/config:/etc/filed'
|
||||
- '/opt/code/target'
|
||||
|
|
|
@ -22,11 +22,6 @@ fn system(cmd: &str, args: &[&str]) -> String {
|
|||
.args(args)
|
||||
.output()
|
||||
.unwrap();
|
||||
|
||||
if out.stderr.len() != 0 {
|
||||
panic!("Got this while running {cmd} with \"{}\": {}", args.join(" "), String::from_utf8(out.stderr).unwrap())
|
||||
}
|
||||
|
||||
String::from_utf8(out.stdout).unwrap()
|
||||
}
|
||||
|
||||
|
@ -74,7 +69,7 @@ fn main() {
|
|||
});
|
||||
|
||||
let commit = system("git", &["rev-parse", "HEAD"]);
|
||||
let branch = system("git", &["rev-parse", "--abbrev-ref", "HEAD"]);
|
||||
let branch = system("git", &["rev-parse", "--abbrev-rev", "HEAD"]);
|
||||
|
||||
println!("cargo:rustc-env=COMMIT_HASH={commit}");
|
||||
println!("cargo:rustc-env=COMMIT_BRANCH={branch}");
|
||||
|
|
Loading…
Reference in New Issue