From 7bcc5e11b961c3236b590108ebd5a52588ee3b3d Mon Sep 17 00:00:00 2001 From: blek Date: Sun, 29 Oct 2023 19:25:53 +1000 Subject: [PATCH] fix few obscure errors --- docker-compose.dev.yml | 1 + filed/build.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index 84557c8..774aea5 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -7,6 +7,7 @@ services: networks: bfile: volumes: + - './.git:/opt/code/.git' - './filed:/opt/code' - './filed/config:/etc/filed' - '/opt/code/target' diff --git a/filed/build.rs b/filed/build.rs index f067b4f..04b9494 100644 --- a/filed/build.rs +++ b/filed/build.rs @@ -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}");