fix few obscure errors

This commit is contained in:
blek 2023-10-29 19:25:53 +10:00
parent a2020a57be
commit 7bcc5e11b9
Signed by: blek
GPG Key ID: 14546221E3595D0C
2 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ services:
networks:
bfile:
volumes:
- './.git:/opt/code/.git'
- './filed:/opt/code'
- './filed/config:/etc/filed'
- '/opt/code/target'

View File

@ -74,7 +74,7 @@ fn main() {
});
let commit = system("git", &["rev-parse", "HEAD"]);
let branch = system("git", &["rev-parse", "--abbrev-rev", "HEAD"]);
let branch = system("git", &["rev-parse", "--abbrev-ref", "HEAD"]);
println!("cargo:rustc-env=COMMIT_HASH={commit}");
println!("cargo:rustc-env=COMMIT_BRANCH={branch}");