X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=t%2Ft5510-fetch.sh;h=139f7106f78177ed4a1355dda463b7b69b2d839f;hb=f45f88b2e483649cd063a7dc7826c03025683e56;hp=e98d90dd9baf644bf2013aea51a91eab4e9ef73c;hpb=352253adf04cb474468a2bc31adde96cbf737f8c;p=thirdparty%2Fgit.git diff --git a/t/t5510-fetch.sh b/t/t5510-fetch.sh index e98d90dd9b..139f7106f7 100755 --- a/t/t5510-fetch.sh +++ b/t/t5510-fetch.sh @@ -978,4 +978,27 @@ test_expect_success '--negotiation-tip limits "have" lines sent with HTTP protoc check_negotiation_tip ' +test_expect_success '--no-show-forced-updates' ' + mkdir forced-updates && + ( + cd forced-updates && + git init && + test_commit 1 && + test_commit 2 + ) && + git clone forced-updates forced-update-clone && + git clone forced-updates no-forced-update-clone && + git -C forced-updates reset --hard HEAD~1 && + ( + cd forced-update-clone && + git fetch --show-forced-updates origin 2>output && + test_i18ngrep "(forced update)" output + ) && + ( + cd no-forced-update-clone && + git fetch --no-show-forced-updates origin 2>output && + ! test_i18ngrep "(forced update)" output + ) +' + test_done