git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] t0091: allow test in a repository without tags
@ 2024-01-30 19:03 Junio C Hamano
  2024-01-30 20:53 ` Eric Sunshine
  2024-02-05 10:07 ` Martin Ågren
  0 siblings, 2 replies; 5+ messages in thread
From: Junio C Hamano @ 2024-01-30 19:03 UTC (permalink / raw)
  To: git; +Cc: Martin Ågren

The beginning of the [System Info] section, which should match the
"git version --build-options" output, may not identify our version
as "git version 2.whatever".  When build in a repository cloned
without tags, for example, "git version unknown.g00000000" can be a
legit version string.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
---
 t/t0091-bugreport.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git c/t/t0091-bugreport.sh w/t/t0091-bugreport.sh
index 8798feefe3..fca39048fe 100755
--- c/t/t0091-bugreport.sh
+++ w/t/t0091-bugreport.sh
@@ -39,9 +39,9 @@ test_expect_success 'sanity check "System Info" section' '
 
 	sed -ne "/^\[System Info\]$/,/^$/p" <git-bugreport-format.txt >system &&
 
-	# The beginning should match "git version --build-info" verbatim,
+	# The beginning should match "git version --build-options" verbatim,
 	# but rather than checking bit-for-bit equality, just test some basics.
-	grep "git version [0-9]." system &&
+	grep "git version " system &&
 	grep "shell-path: ." system &&
 
 	# After the version, there should be some more info.

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-02-06 18:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-30 19:03 [PATCH] t0091: allow test in a repository without tags Junio C Hamano
2024-01-30 20:53 ` Eric Sunshine
2024-01-30 21:46   ` Junio C Hamano
2024-02-05 10:07 ` Martin Ågren
2024-02-06 18:33   ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).