always re-generate .git in lbmk

in release archives, .git is excluded but the version
and versiondate files are included. from these, the
git history is re-created with the exact date (but not
taking into account timezone, at present).

in this way, lbmk will have git history in a release
archive. some build systems, like coreboot, prefer that
there be git history available, so this is a nice
workaround on those build systems.

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2023-10-20 11:16:25 +01:00
parent 52c9416b19
commit 54a05fc167
3 changed files with 18 additions and 22 deletions
+1
View File
@@ -46,6 +46,7 @@ main()
check_git
check_project "fail"
git_init xx_ fail
execute_command $@
lbmk_exit 0