Project

General

Profile

Actions

Bug #14011

open

build/run-library.sh version_from_git function dumps environment when not in a git repo

Added by Joshua Randall over 6 years ago. Updated 10 months ago.

Status:
New
Priority:
Normal
Assigned To:
-
Category:
Deployment
Target version:
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

Also available in: Atom PDF