fix few obscure errors
This commit is contained in:
parent
a2020a57be
commit
7bcc5e11b9
|
@ -7,6 +7,7 @@ services:
|
||||||
networks:
|
networks:
|
||||||
bfile:
|
bfile:
|
||||||
volumes:
|
volumes:
|
||||||
|
- './.git:/opt/code/.git'
|
||||||
- './filed:/opt/code'
|
- './filed:/opt/code'
|
||||||
- './filed/config:/etc/filed'
|
- './filed/config:/etc/filed'
|
||||||
- '/opt/code/target'
|
- '/opt/code/target'
|
||||||
|
|
|
@ -74,7 +74,7 @@ fn main() {
|
||||||
});
|
});
|
||||||
|
|
||||||
let commit = system("git", &["rev-parse", "HEAD"]);
|
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_HASH={commit}");
|
||||||
println!("cargo:rustc-env=COMMIT_BRANCH={branch}");
|
println!("cargo:rustc-env=COMMIT_BRANCH={branch}");
|
||||||
|
|
Loading…
Reference in New Issue