Skip to content

Commit 870c749

Browse files
committed
Merge branch 'tc/zlib-ng-fix'
"git version --build-options" stopped showing zlib version by mistake due to recent refactoring, which has been corrected. * tc/zlib-ng-fix: help: print zlib-ng version number help: include git-zlib.h to print zlib version
2 parents 0665904 + 2b1e0f8 commit 870c749

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

help.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#define DISABLE_SIGN_COMPARE_WARNINGS
33

44
#include "git-compat-util.h"
5+
#include "git-zlib.h"
56
#include "config.h"
67
#include "builtin.h"
78
#include "exec-cmd.h"
@@ -797,7 +798,9 @@ void get_version_info(struct strbuf *buf, int show_build_options)
797798
#if defined OPENSSL_VERSION_TEXT
798799
strbuf_addf(buf, "OpenSSL: %s\n", OPENSSL_VERSION_TEXT);
799800
#endif
800-
#if defined ZLIB_VERSION
801+
#if defined ZLIBNG_VERSION
802+
strbuf_addf(buf, "zlib-ng: %s\n", ZLIBNG_VERSION);
803+
#elif defined ZLIB_VERSION
801804
strbuf_addf(buf, "zlib: %s\n", ZLIB_VERSION);
802805
#endif
803806
}

t/t0091-bugreport.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ test_expect_success 'sanity check "System Info" section' '
4747
# This is bound to differ from environment to environment,
4848
# so we just do some rather high-level checks.
4949
grep "uname: ." system &&
50-
grep "compiler info: ." system
50+
grep "compiler info: ." system &&
51+
grep "zlib." system
5152
'
5253

5354
test_expect_success 'dies if file with same name as report already exists' '

0 commit comments

Comments
 (0)