Actions
Bug #14011
openbuild/run-library.sh version_from_git function dumps environment when not in a git repo
Status:
New
Priority:
Normal
Assigned To:
-
Category:
Deployment
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Story points:
-
Release:
Release relationship:
Auto
Description
there is a bug in build/run-library.sh version_from_git function.
if we are running not in a git repo, the `format_last_commit_here` function returns nothing, and as a result the line:
declare $(format_last_commit_here "git_ts=%ct git_hash=%h")
Ends up being equivalent to `declare` which dumps the environment.
I believe the fix should be to quote it:
declare "$(format_last_commit_here 'git_ts=%ct git_hash=%h')"
Actions