Merge branch 'jc/t0091-with-unknown-git'
The test did not work when Git was built from a repository without tags. * jc/t0091-with-unknown-git: t0091: allow test in a repository without tags
This commit is contained in:
@@ -39,9 +39,9 @@ test_expect_success 'sanity check "System Info" section' '
|
|||||||
|
|
||||||
sed -ne "/^\[System Info\]$/,/^$/p" <git-bugreport-format.txt >system &&
|
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.
|
# 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 &&
|
grep "shell-path: ." system &&
|
||||||
|
|
||||||
# After the version, there should be some more info.
|
# After the version, there should be some more info.
|
||||||
|
|||||||
Reference in New Issue
Block a user