Skip to content

Commit 3cb4384

Browse files
committed
t0091: allow test in a repository without tags
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 built in a repository cloned without tags, for example, "git version unknown.g00000000" can be a legit version string. Signed-off-by: Junio C Hamano <[email protected]>
1 parent 1aa92b8 commit 3cb4384

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/t0091-bugreport.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ test_expect_success 'sanity check "System Info" section' '
3939
4040
sed -ne "/^\[System Info\]$/,/^$/p" <git-bugreport-format.txt >system &&
4141
42-
# The beginning should match "git version --build-info" verbatim,
42+
# The beginning should match "git version --build-options" verbatim,
4343
# but rather than checking bit-for-bit equality, just test some basics.
44-
grep "git version [0-9]." system &&
44+
grep "git version " system &&
4545
grep "shell-path: ." system &&
4646
4747
# After the version, there should be some more info.

0 commit comments

Comments
 (0)