diff options
Diffstat (limited to 't/t5552-http-fetch-branch.sh')
-rwxr-xr-x | t/t5552-http-fetch-branch.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/t/t5552-http-fetch-branch.sh b/t/t5552-http-fetch-branch.sh index 0e905d90b7..8a8e218c1d 100755 --- a/t/t5552-http-fetch-branch.sh +++ b/t/t5552-http-fetch-branch.sh @@ -38,5 +38,10 @@ test_expect_success 'fetch with refspec only fetches requested branch' ' ) ' +test_expect_success 'single-branch clone only fetches requested branch' ' + GIT_TRACE_PACKET="$TRASH_DIRECTORY/trace" git clone --single-branch -b master $HTTPD_URL/smart/repo.git sbc && + ! grep "refs/heads/another_branch" trace +' + stop_httpd test_done |