Skip to content

Comments

PSMDB-1937: fix failing build without git repo#1674

Merged
plebioda merged 1 commit intomasterfrom
PSMDB-1937-fix-failing-build-without-git-repo
Feb 4, 2026
Merged

PSMDB-1937: fix failing build without git repo#1674
plebioda merged 1 commit intomasterfrom
PSMDB-1937-fix-failing-build-without-git-repo

Conversation

@plebioda
Copy link

@plebioda plebioda commented Feb 2, 2026

If the project is built wihtout git repository the get_mongo_version throws due to failing git describe --abbrev=0.

The fix prints an info message and explicitly returns an empty string:

INFO: running wrapper hook...
INFO: auto_header build generated: 568.9 ms
INFO: Failed to get git tag name (git describe failure): 'fatal: not a git repository (or any of the parent directories): .git'

If the project is built wihtout git repository the `get_mongo_version`
throws due to failing `git describe --abbrev=0`.

The fix prints an info message and explicitly returns an empty string:

```
INFO: running wrapper hook...
INFO: auto_header build generated: 568.9 ms
INFO: Failed to get git tag name (git describe failure): 'fatal: not a git repository (or any of the parent directories): .git'
```
@plebioda plebioda force-pushed the PSMDB-1937-fix-failing-build-without-git-repo branch from a4c2f3d to 864eb19 Compare February 2, 2026 11:53
@plebioda plebioda requested a review from ktrushin February 2, 2026 12:00
@plebioda plebioda merged commit c2e7204 into master Feb 4, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants