Skip to content

Fix for --version when .git is missing#2454

Merged
rv-jenkins merged 1 commit intomasterfrom
fix-no-git-version
Feb 24, 2022
Merged

Fix for --version when .git is missing#2454
rv-jenkins merged 1 commit intomasterfrom
fix-no-git-version

Conversation

@Baltoli
Copy link
Copy Markdown
Contributor

@Baltoli Baltoli commented Feb 24, 2022

This makes sure that the version string script outputs an empty string if git isn't installed, or there is no git directory alongside the source code. Doing so means that the package version file gets used instead when building release packages (dpkg or brew).

@Baltoli Baltoli requested a review from radumereuta February 24, 2022 15:18
@radumereuta
Copy link
Copy Markdown
Contributor

What is the output of -v in this case?

@Baltoli
Copy link
Copy Markdown
Contributor Author

Baltoli commented Feb 24, 2022

The format isn't new - this PR just restores what used to happen.

$ kompile --version
K version:    5.2.0
Build date:   Thu Feb 24 08:59:45 CST 2022

@rv-jenkins rv-jenkins merged commit 62f92e0 into master Feb 24, 2022
@rv-jenkins rv-jenkins deleted the fix-no-git-version branch February 24, 2022 17:10
@radumereuta radumereuta linked an issue Feb 24, 2022 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

.deb packaging doesn't pick up version string

3 participants