]> gitweb.ps.run Git - ps-cgit/blobdiff - tests/t0001-validate-git-versions.sh
t0001: ignore ".dirty" suffix on Git version
[ps-cgit] / tests / t0001-validate-git-versions.sh
index 754046ee306efccea2827a541b90160b45af9eac..416ac308d5b30996502038d216f9376d569c6f60 100755 (executable)
@@ -13,7 +13,7 @@ test_expect_success 'extract Git version from Makefile' '
 
 test_expect_success 'test Git version matches Makefile' '
        ( cat ../../git/GIT-VERSION-FILE || echo "No GIT-VERSION-FILE" ) |
-       sed -e "s/GIT_VERSION[  ]*=[    ]*//" >git_version &&
+       sed -e "s/GIT_VERSION[  ]*=[    ]*//" -e "s/\\.dirty$//" >git_version &&
        test_cmp git_version makefile_version
 '