import .git to docker to fix vergen

This commit is contained in:
Tamo 2021-07-28 19:12:40 +02:00
parent d66eea42bb
commit 243233f652
No known key found for this signature in database
GPG Key ID: 20CD8020AFA88D69
2 changed files with 2 additions and 3 deletions

View File

@ -1,5 +1,4 @@
target
Dockerfile
.dockerignore
.git
.gitignore

View File

@ -108,8 +108,8 @@ pub fn print_launch_resume(opt: &Opt, data: &Data) {
Some("") | None => env!("VERGEN_GIT_SHA"),
Some(commit_sha) => commit_sha,
};
let commit_date = match dbg!(option_env!("COMMIT_DATE")) {
Some("") | None => dbg!(env!("VERGEN_GIT_COMMIT_TIMESTAMP")),
let commit_date = match option_env!("COMMIT_DATE") {
Some("") | None => env!("VERGEN_GIT_COMMIT_TIMESTAMP"),
Some(commit_date) => commit_date,
};